generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically update dist for dependabot PRs
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Update action dist on dependabot PRs | ||
on: | ||
push: | ||
branches: | ||
- dependabot/npm_and_yarn/** | ||
pull_request: | ||
branches: | ||
- dependabot/npm_and_yarn/** | ||
|
||
|
||
jobs: | ||
update-action-dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.ACTIONS_APP_ID }} | ||
private-key: ${{ secrets.ACTIONS_APP_PEM }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ steps.generate_token.outputs.token }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Update action dist | ||
run: npm ci && npm run prepare | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Update action dist | ||
branch: ${{ github.head_ref }} | ||
commit_user_name: ${{ github.actor }} | ||
commit_user_email: ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com |