Skip to content

Commit

Permalink
Fix token and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 10, 2024
1 parent 241f4a2 commit 352ef24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/add_mod_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ on:
description: "CurseForge file ID"
required: true

permissions:
# To push the automated commit.
contents: write
# To trigger the hugo workflow.
actions: write

jobs:
update-post:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,4 +73,6 @@ jobs:
# For some reason the commit above doesn't automatically trigger the hugo
# workflow, so we need to explicitly start it here.
- name: Trigger hugo workflow
env:
GH_TOKEN: ${{ github.token }}
run: gh workflow run hugo.yml

0 comments on commit 352ef24

Please sign in to comment.