From 040e1877a28b5b5ae9e4b8a1abc194af70fc9430 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 3 Oct 2024 08:25:54 +0200 Subject: [PATCH] deploy: fix duplicate `env` block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4706536afa..b4b55aa8f0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,9 +23,7 @@ jobs: uses: ./.github/actions/deploy-to-github-pages - name: Purge Cloudflare cache env: + CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} if: env.CLOUDFLARE_TOKEN != '' uses: jakejarvis/cloudflare-purge-action@v0.3.0 - env: - CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} - CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}