generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.14 KB
/
update-dist-on-dependabot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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