-
-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (34 loc) · 866 Bytes
/
renovate-helper.yml
File metadata and controls
39 lines (34 loc) · 866 Bytes
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
name: Renovate Helper
on:
pull_request:
paths:
- "package-lock.json"
- "package.json"
jobs:
npm:
runs-on: ubuntu-22.04
if: github.actor == 'renovate[bot]'
permissions:
contents: write
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: peaceiris/workflows/setup-git@v0.21.1
- uses: peaceiris/workflows/setup-node@v0.21.1
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run build
- run: git status
- run: git diff --exit-code
- name: Commit and Push
if: failure()
env:
HEAD_REF: ${{ github.head_ref }}
run: |
git checkout -b "${HEAD_REF}" "origin/${HEAD_REF}"
git add .
git commit -m "chore: npm run build"
git push