add token

This commit is contained in:
ok-nick 2022-07-17 23:55:01 -04:00
parent de789e1b54
commit 8b1eb3c92e

View file

@ -28,16 +28,22 @@ runs:
if: runner.os == 'Linux' if: runner.os == 'Linux'
shell: bash shell: bash
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *linux-x86_64.zip run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *linux-x86_64.zip
env:
GITHUB_TOKEN: ${{ inputs.token }}
- name: Download aftman - name: Download aftman
if: runner.os == 'macOS' if: runner.os == 'macOS'
shell: bash shell: bash
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *macos-x86_64.zip run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *macos-x86_64.zip
env:
GITHUB_TOKEN: ${{ inputs.token }}
- name: Download aftman - name: Download aftman
if: runner.os == 'Windows' if: runner.os == 'Windows'
shell: bash shell: bash
run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *windows-x86_64.zip run: gh release download ${{ inputs.version }} --repo LPGhatguy/aftman --pattern *windows-x86_64.zip
env:
GITHUB_TOKEN: ${{ inputs.token }}
- name: Install aftman - name: Install aftman
shell: bash shell: bash
@ -45,8 +51,6 @@ runs:
unzip aftman*.zip unzip aftman*.zip
./aftman self-install ./aftman self-install
echo "$HOME/.aftman/bin" >> $GITHUB_PATH echo "$HOME/.aftman/bin" >> $GITHUB_PATH
env:
GITHUB_TOKEN: ${{ inputs.token }}
- name: Setup trusts - name: Setup trusts
if: ${{ inputs.no-trust-check == 'false' }} if: ${{ inputs.no-trust-check == 'false' }}