From 8b1eb3c92e33adbbce394fd270b03c14ee5c932b Mon Sep 17 00:00:00 2001 From: ok-nick <25470747+ok-nick@users.noreply.github.com> Date: Sun, 17 Jul 2022 23:55:01 -0400 Subject: [PATCH] add token --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index f22c65f..88f41d6 100644 --- a/action.yml +++ b/action.yml @@ -28,16 +28,22 @@ runs: if: runner.os == 'Linux' shell: bash run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *linux-x86_64.zip + env: + GITHUB_TOKEN: ${{ inputs.token }} - name: Download aftman if: runner.os == 'macOS' shell: bash run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *macos-x86_64.zip + env: + GITHUB_TOKEN: ${{ inputs.token }} - name: Download aftman if: runner.os == 'Windows' shell: bash run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *windows-x86_64.zip + env: + GITHUB_TOKEN: ${{ inputs.token }} - name: Install aftman shell: bash @@ -45,8 +51,6 @@ runs: unzip aftman*.zip ./aftman self-install echo "$HOME/.aftman/bin" >> $GITHUB_PATH - env: - GITHUB_TOKEN: ${{ inputs.token }} - name: Setup trusts if: ${{ inputs.no-trust-check == 'false' }}