Skip to content

Commit 1463895

Browse files
authored
Fix Echidna dry-run logic (#1857)
1 parent 134a6b0 commit 1463895

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/w3c-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ jobs:
6464
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
6565
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
6666
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
67+
# Publish the draft on manual dispatches without dry-run set, or on pushes to the main branch.
6768
ECHIDNA_DRYRUN: |-
68-
${{ (github.event_name == 'workflow_dispatch' && inputs.dry-run) ||
69-
!(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }}
69+
${{ !((github.event_name == 'workflow_dispatch' && !inputs.dry-run) ||
70+
(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main')) }}
7071
- name: Validate ${{ matrix.spec }} spec with Echidna
7172
if: env.W3C_USERNAME
7273
run: cd document && make -e -C ${{ matrix.spec }} WD-echidna

0 commit comments

Comments
 (0)