Skip to content

Commit

Permalink
CI: Enable write permission for Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 committed Jun 28, 2023
1 parent e5db7e4 commit 5b9cf96
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -176,11 +180,10 @@ jobs:
echo "</details>" >> 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

0 comments on commit 5b9cf96

Please sign in to comment.