From 7b6f3d09a3205e4c045497125b1a1c39233a83d7 Mon Sep 17 00:00:00 2001 From: Predrag Knezevic Date: Mon, 6 Jul 2026 16:05:47 +0200 Subject: [PATCH] fix: use static permissions in update-demos workflow 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 --- .github/workflows/update-demos.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-demos.yaml b/.github/workflows/update-demos.yaml index 076624613b..f1c45a4000 100644 --- a/.github/workflows/update-demos.yaml +++ b/.github/workflows/update-demos.yaml @@ -24,7 +24,7 @@ jobs: generate-demos: runs-on: ubuntu-latest permissions: - contents: ${{ github.event_name == 'push' && 'write' || 'read' }} + contents: write env: TERM: linux steps: