Skip to content

Commit c8fbf77

Browse files
committed
One more fix to re-release workflow
1 parent 0b3ef58 commit c8fbf77

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/re-release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ jobs:
2323
- name: Checkout Repository
2424
uses: actions/checkout@v4
2525

26-
- name: Checkout Code
27-
uses: actions/checkout@v4
28-
with:
29-
ref: ${{ inputs.version_tag }}
30-
31-
- name: Move one commit back
32-
run:
33-
git reset --hard HEAD~1
26+
- name: Checkout Code One Commit Before ${{ inputs.version_tag }}
27+
run: |
28+
git fetch --prune --unshallow || true
29+
git checkout ${{ inputs.version_tag }}~1
3430
3531
- name: Set up Java
3632
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)