fix(action): added gh token
All checks were successful
build image / release_tag (push) Successful in 2s
build image / build (push) Successful in 5m14s
build image / publish_release (push) Successful in 4s

This commit is contained in:
sujiba 2024-07-09 08:29:40 +00:00
parent cc6928cd3f
commit 105fb15d79

View file

@ -79,6 +79,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
NEW_RELEASE: ${{ needs.release_tag.outputs.release }} NEW_RELEASE: ${{ needs.release_tag.outputs.release }}
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -128,4 +129,4 @@ jobs:
echo "$body" echo "$body"
# Create release # Create release
curl -d "{\"body\": \"$body\", \"tag_name\": \"$RELEASE\", \"target_commitish\": \"main\" }" https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/release -H "Authorization: token ${{ secrets.GH_TOKEN }}" -H "Content-Type: application/json" curl -d "{\"body\": \"$body\", \"tag_name\": \"$RELEASE\", \"target_commitish\": \"main\" }" https://git.smail.koeln/api/v1/repos/homelab/docker-ownDynDNS-netcup/release -H "Authorization: token $GH_TOKEN" -H "Content-Type: application/json"