diff --git a/.github/scripts/update-npm.sh b/.github/scripts/update-npm.sh index 4af87df9..8f3d37a4 100755 --- a/.github/scripts/update-npm.sh +++ b/.github/scripts/update-npm.sh @@ -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" diff --git a/.github/scripts/update-python.sh b/.github/scripts/update-python.sh index 1ecb1548..7ad70595 100755 --- a/.github/scripts/update-python.sh +++ b/.github/scripts/update-python.sh @@ -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" diff --git a/.github/workflows/deps-npm.yml b/.github/workflows/deps-npm.yml index 3e02b94b..ece0193b 100644 --- a/.github/workflows/deps-npm.yml +++ b/.github/workflows/deps-npm.yml @@ -13,3 +13,4 @@ jobs: - run: ./.github/scripts/update-npm.sh env: id: ${{ github.run_id }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deps-python.yml b/.github/workflows/deps-python.yml index 42ec2f49..4ff4b8cb 100644 --- a/.github/workflows/deps-python.yml +++ b/.github/workflows/deps-python.yml @@ -13,4 +13,5 @@ jobs: - run: ./.github/scripts/update-python.sh env: id: ${{ github.run_id }} + token: ${{ secrets.GITHUB_TOKEN }} working_directory: ${{ github.workspace }}