-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (41 loc) · 1.16 KB
/
dependabot-update.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
43
44
45
46
47
48
49
50
51
name: Dependabot update
on:
workflow_run:
workflows: [CI]
branches-ignore: [main]
types: [completed]
jobs:
build-and-update:
if: >
${{
github.actor == 'dependabot[bot]' &&
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'failure'
}}
runs-on: ubuntu-latest
environment: dependabot_update
steps:
- uses: actions/checkout@v4
with:
# use a separate token to allow the push to trigger builds
token: ${{ secrets.DEPENDABOT_GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: yarn
- name: Clean
run: yarn clean
- name: Fix
run: yarn fix
- name: Test (update snapshots)
run: yarn test -u
- name: Build
run: yarn build
- name: Add and commit
uses: EndBug/[email protected]
with:
default_author: github_actions
message: Fix lint errors and build