We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bab1079 commit 909a0b2Copy full SHA for 909a0b2
.github/workflows/on_workflow_dispatch_perform_maven_release.yml
@@ -11,6 +11,12 @@ on:
11
required: true
12
default: "0.2.2"
13
14
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15
+permissions:
16
+ contents: read
17
+ pages: write
18
+ id-token: write
19
+
20
jobs:
21
build:
22
@@ -70,7 +76,8 @@ jobs:
70
76
- name: Build with Maven
71
77
run: mvn --no-transfer-progress -B release:prepare release:perform -Prelease --file pom.xml
72
78
env:
73
- GITHUB_TOKEN: ${{ github.token }}
79
+# Secret is changed to have the permission to update the workflow file
80
+ GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_GITHUB }}
74
81
- name: Get created tag name (for GitHuub release creation)
75
82
id: tag
83
run: echo "CREATED_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
0 commit comments