Skip to content

Commit 26c0516

Browse files
committed
fix gha 4
1 parent e798bf1 commit 26c0516

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ on:
1919
jobs:
2020
build:
2121
runs-on: ubuntu-latest
22-
permissions:
23-
# Give the default GITHUB_TOKEN write permission to commit and push the
24-
# added or changed files to the repository.
25-
contents: write
2622
steps:
2723
- name: Checkout Repository
2824
uses: actions/checkout@v3
25+
with:
26+
token: ${{ secrets.PAT }}
2927

3028
- name: Check if tag already exists
3129
run: |
@@ -66,7 +64,7 @@ jobs:
6664
github-generate-changelog: true
6765
github-draft: false
6866
github-prerelease: false
69-
github-token: ${{ secrets.GITHUB_TOKEN }}
67+
github-token: ${{ secrets.PAT }}
7068

7169
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
7270
files-secondary: build/libs/*-@(dev|sources|javadoc).jar

0 commit comments

Comments
 (0)