Skip to content

Commit 4ddcd5d

Browse files
committed
Fix bump version CI again
1 parent 6a55145 commit 4ddcd5d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/bump.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
15+
with:
16+
ref: 'main'
1517

1618
- uses: actions/setup-java@v4
1719
with:
1820
distribution: 'liberica'
1921
java-version: '21'
2022

21-
- name: Build with Maven
23+
- name: Bump version
2224
run: mvn versions:set -DnewVersion=${{ github.ref_name }}
2325

24-
- name: Commit report
26+
- name: Commit changes
2527
run: |
26-
git checkout main
2728
git config --global user.name 'CI Bot'
2829
git config --global user.email 'ci-bot@users.noreply.github.com'
2930
git commit -am "Bump version to ${{ github.ref_name }}"

0 commit comments

Comments
 (0)