File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Run make everything-from-scratch
2+
3+ on :
4+ pull_request :
5+ types : [opened, reopened]
6+
7+ jobs :
8+ npm_run_build :
9+ name : NPM run build
10+ runs-on : ubuntu-latest
11+ if : ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
12+ permissions :
13+ contents : write
14+ steps :
15+ - name : Checkout PR head
16+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
17+ with :
18+ ref : ${{ github.head_ref }}
19+
20+ - name : Setup Node.js
21+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
22+ with :
23+ node-version : " 24"
24+ cache : " npm"
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Make everything from scratch
30+ run : make everything-from-scratch
31+
32+ - name : Commit and push if changed
33+ run : |
34+ git config user.name "github-actions[bot]"
35+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
36+ git add -A
37+ if git diff --staged --quiet; then
38+ echo "No build changes to commit"
39+ else
40+ git commit -m "chore: rebuild dist with make everything-from-scratch"
41+ git push
42+ fi
You can’t perform that action at this time.
0 commit comments