Pass token into script

This commit is contained in:
Brett Logan 2022-02-22 10:33:03 -05:00
parent 42221dee4c
commit 6b23c0aab1
No known key found for this signature in database
GPG key ID: 52ED7D1F56850EE6
4 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,7 @@ if [[ $(git status --porcelain) ]]; then
# Open pull request
echo "Opening pull request..."
echo "${GITHUB_TOKEN}" | gh auth login --with-token
echo "${token}" | gh auth login --with-token
gh pr create --title "Weekly NPM Updates" --body "Updates NPM dependencies" --base master --head "npm_deps_${id}"
else
echo "No changes to commit"

View file

@ -71,7 +71,7 @@ if [[ $(git status --porcelain) ]]; then
# Open pull request
echo "Opening pull request..."
echo "${GITHUB_TOKEN}" | gh auth login --with-token
echo "${token}" | gh auth login --with-token
gh pr create --title "Weekly Python Updates" --body "Updates Python dependencies" --base master --head "python_deps_${id}"
else
echo "No changes to commit"

View file

@ -13,3 +13,4 @@ jobs:
- run: ./.github/scripts/update-npm.sh
env:
id: ${{ github.run_id }}
token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -13,4 +13,5 @@ jobs:
- run: ./.github/scripts/update-python.sh
env:
id: ${{ github.run_id }}
token: ${{ secrets.GITHUB_TOKEN }}
working_directory: ${{ github.workspace }}