File tree Expand file tree Collapse file tree 7 files changed +30855
-893
lines changed
Expand file tree Collapse file tree 7 files changed +30855
-893
lines changed Original file line number Diff line number Diff line change 1+ name : Rebuild Changes
2+
3+ on :
4+ push :
5+ branches :
6+ - ' main'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ issues : write
13+ contents : write
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : 20
20+
21+ - name : Install packages
22+ run : npm ci
23+
24+ - name : Rebuild
25+ run : npm run release
26+
27+ - name : Check change status
28+ id : check_status
29+ run : |
30+ git status -s
31+ echo "::set-output name=changed::$(git status -s | grep -q 'action/index.js' && echo 'true' || echo 'false')"
32+
33+ - name : Push new action/index.js
34+ if : ${{ steps.check_status.outputs.changed == 'true' }}
35+ run : |
36+ git config --global user.name "GitHub"
37+ git config --global user.email "noreply@github.com"
38+ git commit -m "Rebuild action/index.js" --author="github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
39+ git push origin
Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ jobs:
1010 test :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
14- - uses : actions/setup-node@v1
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions/setup-node@v4
1516 with :
16- node-version : 12
17+ node-version : 20
18+
1719 - name : Install packages
1820 run : npm install
21+
1922 - name : Create test file
2023 run : echo Hello, world! > hello.txt
2124
5154 with :
5255 name : test-m3-artifact
5356 path : hello.txt
57+
5458 - name : Detele all artifact
5559 uses : ./
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ jspm_packages/
4949.pnp.js
5050
5151# Node lock file
52- package-lock.json
5352yarn.lock
5453pnpm-lock.yaml
5554
Original file line number Diff line number Diff line change 66 description : The name of the artifact to delete, multiple names can be supplied on new lines.
77 required : false
88runs :
9- using : node16
9+ using : node20
1010 main : action/index.js
1111branding :
1212 icon : trash-2
You can’t perform that action at this time.
0 commit comments