Skip to content

Commit 202f29d

Browse files
authored
Allow real Echidna publishing runs from workflow_dispatch (#1850)
Specify the dry-run variable and pass it through to Echidna
1 parent bd2aa85 commit 202f29d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/w3c-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
# Candidate Recommendation Snapshot).
1616
workflow_dispatch:
1717
inputs:
18+
dry-run:
19+
required: true
20+
type: boolean
21+
description: If set, Echidna will validate but not publish.
1822
w3c-status:
1923
required: true
2024
type: choice
@@ -60,7 +64,9 @@ jobs:
6064
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
6165
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
6266
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
63-
ECHIDNA_DRYRUN: ${{ !(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }}
67+
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') }}
6470
- name: Validate ${{ matrix.spec }} spec with Echidna
6571
if: env.W3C_USERNAME
6672
run: cd document && make -e -C ${{ matrix.spec }} WD-echidna

0 commit comments

Comments
 (0)