added permissions for packages and moved token to actions checkout
All checks were successful
Gitea CI/CD / Set Tag Name (push) Successful in 5s
Gitea CI/CD / build-and-test (push) Successful in 44s
Gitea CI/CD / docker-build-and-push (push) Successful in 5m39s
Gitea CI/CD / Create Tag (push) Successful in 5s

This commit is contained in:
2025-10-04 01:41:06 +02:00
parent 12390031f9
commit 596baba5ef

View File

@@ -10,6 +10,7 @@ on:
permissions: permissions:
contents: write contents: write
packages: write
env: env:
DOTNET_VERSION: '8.0.x' DOTNET_VERSION: '8.0.x'
@@ -112,6 +113,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Git user - name: Set up Git user
run: | run: |
@@ -119,8 +121,6 @@ jobs:
git config user.email "actions@github.com" git config user.email "actions@github.com"
- name: Create and push tag - name: Create and push tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
git tag ${{ needs.set-tag.outputs.tag_name }} git tag ${{ needs.set-tag.outputs.tag_name }}
git push origin ${{ needs.set-tag.outputs.tag_name }} git push origin ${{ needs.set-tag.outputs.tag_name }}