Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Token #122

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Token #122

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/npm-check-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ jobs:
git commit -m 'npm-check-updates'
git push --force --set-upstream origin npm-check-updates
if: steps.diff.outcome == 'failure'
- id: generate_token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create PR
run: |
set -x
if [ $(gh pr list --base ${GITHUB_REF_NAME} --head npm-check-updates | wc -l) -eq 0 ]; then
gh pr create --base ${GITHUB_REF_NAME} --head npm-check-updates --title 'npm-check-updates' --body '' --label dependencies --assignee ${GITHUB_ACTOR}
fi
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
if: steps.diff.outcome == 'failure'