From db3d249f0d2cb79b5ec4c4b89d52dca94b431a59 Mon Sep 17 00:00:00 2001 From: Raphael Vullriede Date: Tue, 5 Nov 2024 09:00:10 +0100 Subject: [PATCH] use standard github token for releases --- .github/workflows/build-release-on-main-push.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release-on-main-push.yml b/.github/workflows/build-release-on-main-push.yml index a11cfdb..d97c903 100644 --- a/.github/workflows/build-release-on-main-push.yml +++ b/.github/workflows/build-release-on-main-push.yml @@ -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 @@ -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 \ No newline at end of file