Skip to content

Commit

Permalink
Allow real Echidna publishing runs from workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dschuff committed Nov 27, 2024
1 parent bd2aa85 commit b9d089d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/w3c-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
# Candidate Recommendation Snapshot).
workflow_dispatch:
inputs:
dry-run:
required: true
type: boolean
description: If set, Echidna will validate but not publish.
w3c-status:
required: true
type: choice
Expand Down Expand Up @@ -60,7 +64,8 @@ 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 }}
ECHIDNA_DRYRUN: ${{ !(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }}
ECHIDNA_DRYRUN: ${{ (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
Expand Down

0 comments on commit b9d089d

Please sign in to comment.