Skip to content

Commit

Permalink
fix: Move workflow write permission to caller example
Browse files Browse the repository at this point in the history
Setting permission in the reusable workflow doesn't work,
the user needs to do it in the calling workflow
  • Loading branch information
caksoylar committed Sep 13, 2023
1 parent 4f4fc4d commit a6e3b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/draw-zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ on:
jobs:
draw:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ on:
jobs:
draw:
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
permissions:
contents: write # allow workflow to commit to the repo
with:
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
config_path: "keymap_drawer.config.yaml" # config file, ignored if not exists
Expand Down

0 comments on commit a6e3b18

Please sign in to comment.