Skip to content

Commit

Permalink
Removes inputs.github-token in favor of secrets.github-token (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-carey authored Oct 25, 2023
1 parent 4c7843e commit 891012d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy-lambda-function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ on:
description: 'If pulling from a github release, the release tag that should be pulled from'
type: string
default: ''
github-token:
description: 'The github token that has read access to the release assets'
type: string
default: ${{ github.token }}

# AWS options
role-name: # shorthand
Expand Down Expand Up @@ -166,7 +162,7 @@ jobs:
shell: bash
run: gh -R "${{ github.repository }}" release download -p "${{ inputs.pattern }}" "${{ inputs.release-tag }}"
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
GH_TOKEN: ${{ secrets.github-token || github.token }}
# Only if we are downloading assets from gh release
if: inputs.release-tag != ''

Expand Down

0 comments on commit 891012d

Please sign in to comment.