From 1463895767111b39657ea73c35587d4c6054deec Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Tue, 17 Dec 2024 16:39:21 -0800 Subject: [PATCH] Fix Echidna dry-run logic (#1857) --- .github/workflows/w3c-publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/w3c-publish.yml b/.github/workflows/w3c-publish.yml index be25a9565b..a30489f775 100644 --- a/.github/workflows/w3c-publish.yml +++ b/.github/workflows/w3c-publish.yml @@ -64,9 +64,10 @@ jobs: W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }} W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }} W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }} + # Publish the draft on manual dispatches without dry-run set, or on pushes to the main branch. ECHIDNA_DRYRUN: |- - ${{ (github.event_name == 'workflow_dispatch' && inputs.dry-run) || - !(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }} + ${{ !((github.event_name == 'workflow_dispatch' && !inputs.dry-run) || + (github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main')) }} - name: Validate ${{ matrix.spec }} spec with Echidna if: env.W3C_USERNAME run: cd document && make -e -C ${{ matrix.spec }} WD-echidna