diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e90cf2..f09c2ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,9 @@ name: Publish Release on: workflow_dispatch: +env: + GITHUB_TOKEN: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }} + jobs: release: name: Publish Release @@ -16,8 +19,6 @@ jobs: java-version: 17 - uses: actions/checkout@v3 - with: - token: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }} - id: current_version uses: christian-draeger/read-properties@1.1.1 @@ -27,16 +28,12 @@ jobs: - name: Create Tag uses: simpleactions/create-tag@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag: ${{ steps.current_version.outputs.version }} message: ${{ steps.current_version.outputs.version }} - name: Create Release uses: ncipollo/release-action@v1.12.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag: ${{ steps.current_version.outputs.version }} generateReleaseNotes: true @@ -65,8 +62,6 @@ jobs: - name: Commit Version Bump uses: EndBug/add-and-commit@v9.1.1 - env: - GITHUB_TOKEN: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }} with: add: gordon-plugin/gradle.properties message: Bump version to ${{steps.next_version.outputs.bumped-semantic-version}}