Skip to content

Commit 040e187

Browse files
committed
deploy: fix duplicate env block
https://github.com/git/git-scm.com/actions/runs/11156892349 failed with this error message: ⨂ Invalid workflow file: .github/workflows/deploy.yml#L29 The workflow is not valid. .github/workflows/deploy.yml (Line: 29, Col: 9): 'env' is already defined The fix is easy: merge the two `env` blocks into a single one. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 99f96a6 commit 040e187

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
uses: ./.github/actions/deploy-to-github-pages
2424
- name: Purge Cloudflare cache
2525
env:
26+
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
2627
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
2728
if: env.CLOUDFLARE_TOKEN != ''
2829
uses: jakejarvis/[email protected]
29-
env:
30-
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
31-
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}

0 commit comments

Comments
 (0)