Skip to content

Commit 69d75f8

Browse files
authored
Merge pull request #12 from impresscms-dev/fix/Fixes-autobuild-commit
Fixes autobuild commit
2 parents 2b31166 + 5da98a2 commit 69d75f8

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/test-and-build.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,34 @@ jobs:
4444
- name: Pack
4545
run: npm run pack
4646

47+
- name: Uploading build artifact...
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: build
51+
path: dist/*.js
52+
4753
commit_and_push:
4854

4955
runs-on: ubuntu-latest
5056
name: Commit and push build if needed
5157
needs: build
5258

5359
steps:
54-
-
60+
- name: Checkouting code...
61+
uses: actions/checkout@v3
62+
with:
63+
ref: ${{ github.head_ref }}
64+
65+
- name: Downloading build artifact....
66+
uses: actions/download-artifact@v3
67+
with:
68+
name: build
69+
path: dist/
70+
71+
- name: Auto commiting changes...
5572
uses: stefanzweifel/git-auto-commit-action@v4
5673
with:
5774
commit_message: Automatically builded and updated
5875
file_pattern: dist/*.js
5976
skip_fetch: true
60-
skip_checkout: true
77+
skip_checkout: true

0 commit comments

Comments
 (0)