Skip to content

Commit

Permalink
oh come on, it shouldn't be that hard to have the correct token to up…
Browse files Browse the repository at this point in the history
…date the very workflow file that started the whole thing !
  • Loading branch information
Riduidel committed May 29, 2024
1 parent bab1079 commit 909a0b2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
default: "0.2.2"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:

Expand Down Expand Up @@ -70,7 +76,8 @@ jobs:
- name: Build with Maven
run: mvn --no-transfer-progress -B release:prepare release:perform -Prelease --file pom.xml
env:
GITHUB_TOKEN: ${{ github.token }}
# Secret is changed to have the permission to update the workflow file
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_GITHUB }}
- name: Get created tag name (for GitHuub release creation)
id: tag
run: echo "CREATED_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 909a0b2

Please sign in to comment.