Skip to content

Commit

Permalink
Reset staging/main when preparing release
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman authored Mar 20, 2024
1 parent 4f44fee commit 4462cc4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/create_release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Reset staging/main Staging
id: staging
run: |
git checkout -Bt staging/main
git push -f
- name: Set Release Version
id: release
run: |
Expand All @@ -29,7 +38,7 @@ jobs:
commit_message: "Prepare release (${{ github.actor }}): github-api-${{ steps.release.outputs.version }}"
tagging_message: 'github-api-${{ steps.release.outputs.version }}'
branch: staging/main

- name: Increment Snapshot Version
run: |
mvn versions:set versions:commit -DnextSnapshot
Expand All @@ -38,7 +47,7 @@ jobs:
with:
commit_message: "Prepare for next development iteration"
branch: staging/main

- name: pull-request to main
uses: repo-sync/pull-request@v2
with:
Expand Down

0 comments on commit 4462cc4

Please sign in to comment.