From 50ce4203a974c4b4f536e288a23ed7d6d287b209 Mon Sep 17 00:00:00 2001 From: Siarhei Dudko Date: Wed, 16 Oct 2024 05:10:52 +0400 Subject: [PATCH] fix wf --- .github/workflows/autoupdate.yml | 2 +- .github/workflows/build-and-deploy.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index 8fe43bf..cb62a87 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -79,7 +79,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_WORKFLOW }} with: tag_name: ${{ env.VERSION }} release_name: Release ${{ env.VERSION }} diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 7226dae..f3b6382 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -3,8 +3,6 @@ on: push: tags: - "*.*.*" -permissions: - contents: write jobs: build: runs-on: ubuntu-latest @@ -113,7 +111,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_WORKFLOW }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }}