Skip to content

Commit a918ca8

Browse files
pedjakclaude
andauthored
fix: use static permissions in update-demos workflow (#2805)
GitHub Actions does not support expressions in the permissions block. The dynamic expression was causing every workflow run to fail with "workflow file issue" before any job could start. Use static contents:write (matching pages.yaml convention). The deploy step is already gated by `if: github.event_name == 'push'`. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7461774 commit a918ca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/update-demos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
generate-demos:
2525
runs-on: ubuntu-latest
2626
permissions:
27-
contents: ${{ github.event_name == 'push' && 'write' || 'read' }}
27+
contents: write
2828
env:
2929
TERM: linux
3030
steps:

0 commit comments

Comments
 (0)