mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 14:10:56 -05:00
Pass token into script
This commit is contained in:
parent
42221dee4c
commit
6b23c0aab1
4 changed files with 4 additions and 2 deletions
2
.github/scripts/update-npm.sh
vendored
2
.github/scripts/update-npm.sh
vendored
|
@ -31,7 +31,7 @@ if [[ $(git status --porcelain) ]]; then
|
||||||
|
|
||||||
# Open pull request
|
# Open pull request
|
||||||
echo "Opening 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}"
|
gh pr create --title "Weekly NPM Updates" --body "Updates NPM dependencies" --base master --head "npm_deps_${id}"
|
||||||
else
|
else
|
||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
|
|
2
.github/scripts/update-python.sh
vendored
2
.github/scripts/update-python.sh
vendored
|
@ -71,7 +71,7 @@ if [[ $(git status --porcelain) ]]; then
|
||||||
|
|
||||||
# Open pull request
|
# Open pull request
|
||||||
echo "Opening 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}"
|
gh pr create --title "Weekly Python Updates" --body "Updates Python dependencies" --base master --head "python_deps_${id}"
|
||||||
else
|
else
|
||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
|
|
1
.github/workflows/deps-npm.yml
vendored
1
.github/workflows/deps-npm.yml
vendored
|
@ -13,3 +13,4 @@ jobs:
|
||||||
- run: ./.github/scripts/update-npm.sh
|
- run: ./.github/scripts/update-npm.sh
|
||||||
env:
|
env:
|
||||||
id: ${{ github.run_id }}
|
id: ${{ github.run_id }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
1
.github/workflows/deps-python.yml
vendored
1
.github/workflows/deps-python.yml
vendored
|
@ -13,4 +13,5 @@ jobs:
|
||||||
- run: ./.github/scripts/update-python.sh
|
- run: ./.github/scripts/update-python.sh
|
||||||
env:
|
env:
|
||||||
id: ${{ github.run_id }}
|
id: ${{ github.run_id }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
working_directory: ${{ github.workspace }}
|
working_directory: ${{ github.workspace }}
|
||||||
|
|
Loading…
Reference in a new issue