Update action dist #52
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
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 |