File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,22 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0
16+
1417 - name : Set up Maven Central Repository
1518 uses : actions/setup-java@v4
1619 with :
1720 java-version : ' 17'
1821 distribution : ' temurin'
1922 cache : ' maven'
2023
24+ - name : Reset staging/main Staging
25+ id : staging
26+ run : |
27+ git checkout -Bt staging/main
28+ git push -f
29+
2130 - name : Set Release Version
2231 id : release
2332 run : |
2938 commit_message : " Prepare release (${{ github.actor }}): github-api-${{ steps.release.outputs.version }}"
3039 tagging_message : ' github-api-${{ steps.release.outputs.version }}'
3140 branch : staging/main
32-
41+
3342 - name : Increment Snapshot Version
3443 run : |
3544 mvn versions:set versions:commit -DnextSnapshot
3847 with :
3948 commit_message : " Prepare for next development iteration"
4049 branch : staging/main
41-
50+
4251 - name : pull-request to main
4352 uses : repo-sync/pull-request@v2
4453 with :
You can’t perform that action at this time.
0 commit comments