From 105fb15d796db056b57c349527b07fd17aac63f4 Mon Sep 17 00:00:00 2001 From: sujiba Date: Tue, 9 Jul 2024 08:29:40 +0000 Subject: [PATCH] fix(action): added gh token --- .forgejo/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 1c1f6c1..891dea1 100755 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -79,6 +79,7 @@ jobs: runs-on: ubuntu-latest env: NEW_RELEASE: ${{ needs.release_tag.outputs.release }} + GH_TOKEN: "${{ secrets.GH_TOKEN }}" steps: - name: Checkout uses: actions/checkout@v4 @@ -128,4 +129,4 @@ jobs: echo "$body" # 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" \ No newline at end of file + 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" \ No newline at end of file