From 5b9cf96cdc4ca02bbf0604d3ec555096037bedde Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Tue, 27 Jun 2023 23:13:59 -0500 Subject: [PATCH] CI: Enable write permission for Releases --- .github/workflows/CI.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6feb85f4..82201997 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,6 +11,10 @@ on: - '**/*.txt' workflow_dispatch: +# for release create +permissions: + contents: write + concurrency: group: ${{ github.ref }}-${{ github.event_name }} cancel-in-progress: true @@ -176,11 +180,10 @@ jobs: echo "" >> hash.md - name: Create Release - working-directory: bin/plugins if: | github.event_name == 'workflow_dispatch' && github.repository == 'GoldHEN/GoldHEN_Plugins_Repository' + working-directory: bin/plugins env: - GITHUB_TOKEN: ${{ secrets.my_token }} - run: | - gh release create ${{ env.commit_ver }} ${{ env.ZIP_NAME }}.zip --target ${{ GITHUB.SHA }} -t "${{ env.commit_ver }}" -F hash.md + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release create ${{ env.commit_ver }} ${{ env.ZIP_NAME }}.zip --target ${{ GITHUB.SHA }} -t "${{ env.commit_ver }}" -F hash.md