Skip to content

Commit 32e9e74

Browse files
committed
amend
1 parent a9aaf8f commit 32e9e74

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build_dist_on_merge.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: actions/checkout@v4
1414
with:
1515
ref: ${{ github.head_ref }}
16+
fetch-depth: 2
1617

1718
- name: Set up Node.js
1819
uses: actions/setup-node@v4
@@ -25,6 +26,15 @@ jobs:
2526
- name: Build project
2627
run: yarn build
2728

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+
2835
- uses: stefanzweifel/git-auto-commit-action@v5
2936
with:
30-
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

Comments
 (0)