Skip to content

Commit

Permalink
use standard github token for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rvullriede committed Nov 5, 2024
1 parent d1685c4 commit db3d249
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-release-on-main-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: main
token: ${{secrets.PAT_GH_CI}}
# token: ${{secrets.PAT_GH_CI}}

- name: setup-jdk
uses: actions/setup-java@v4
Expand Down Expand Up @@ -47,10 +47,20 @@ jobs:
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

- name: 'get-latest-tag'
id: 'get-latest-tag'
uses: "WyriHaximus/github-action-get-previous-tag@v1"

- name: create-release-notes
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
name: ${{ steps.get-latest-tag.outputs.tag }}

- name: merge-main-to-dev
run: |
git fetch --unshallow
git checkout dev
git pull
git merge --no-ff main -m "[release] auto-merge released main back to dev"
git push
git push

0 comments on commit db3d249

Please sign in to comment.