We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9aaf8f commit 32e9e74Copy full SHA for 32e9e74
.github/workflows/build_dist_on_merge.yml
@@ -13,6 +13,7 @@ jobs:
13
uses: actions/checkout@v4
14
with:
15
ref: ${{ github.head_ref }}
16
+ fetch-depth: 2
17
18
- name: Set up Node.js
19
uses: actions/setup-node@v4
@@ -25,6 +26,15 @@ jobs:
25
26
- name: Build project
27
run: yarn build
28
29
+ - name: Get last commit message
30
+ id: last-commit
31
+ run: |
32
+ echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
33
+ echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
34
+
35
- uses: stefanzweifel/git-auto-commit-action@v5
36
- commit_message: rebuild
37
+ commit_message: ${{ steps.last-commit.outputs.message }}
38
+ commit_options: '--amend --no-edit'
39
+ push_options: '--force'
40
+ skip_fetch: true
0 commit comments