Fix workflows permission & website deploy trigger

This commit is contained in:
Cuong-Tran 2025-04-14 17:22:56 +07:00
parent c413d7f219
commit 70ca305e16
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
6 changed files with 16 additions and 1 deletions

View file

@ -19,6 +19,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
permissions:
contents: write
jobs: jobs:
prepare-build: prepare-build:
runs-on: 'ubuntu-24.04' runs-on: 'ubuntu-24.04'

View file

@ -10,6 +10,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
permissions:
contents: write
jobs: jobs:
prepare-build: prepare-build:
runs-on: 'ubuntu-24.04' runs-on: 'ubuntu-24.04'

View file

@ -4,6 +4,9 @@ on:
pull_request: pull_request:
types: [closed] types: [closed]
permissions:
contents: write
jobs: jobs:
delete_merged_branch: delete_merged_branch:
runs-on: 'ubuntu-24.04' runs-on: 'ubuntu-24.04'

View file

@ -6,6 +6,9 @@ on:
issue_comment: issue_comment:
types: [created] types: [created]
permissions:
contents: write
jobs: jobs:
moderate: moderate:
runs-on: 'ubuntu-24.04' runs-on: 'ubuntu-24.04'

View file

@ -4,6 +4,9 @@ on:
pull_request: pull_request:
types: [opened] types: [opened]
permissions:
contents: write
jobs: jobs:
label_pr: label_pr:
runs-on: 'ubuntu-24.04' runs-on: 'ubuntu-24.04'

View file

@ -15,7 +15,7 @@ jobs:
- name: Update website on release - name: Update website on release
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
with: with:
workflow: deploy workflow: Deploy
repo: komikku-app/komikku-app.github.io repo: komikku-app/komikku-app.github.io
ref: "refs/heads/main" ref: "refs/heads/main"
token: "${{ secrets.BOT_PAT }}" token: "${{ secrets.BOT_PAT }}"