Skip to content

Commit ee82c8e

Browse files
dschuffMs2ger
andauthored
Add input for workflow dispatch for W3C publish workflow (#1791)
When manually dispatching workflows, inputs can be collected from the dispatching user and passed to the workflow. Use this feature to allow manually setting the W3C_STATE of the document. This will let us publish CR drafts on every push (once we update the default state from WD) and CR snapshots on demand. Co-authored-by: Ms2ger <[email protected]>
1 parent ab41b88 commit ee82c8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/w3c-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
10+
inputs:
11+
w3c-status:
12+
required: true
13+
type: string
1014

1115
jobs:
1216
publish-to-w3c-TR:
@@ -30,7 +34,7 @@ jobs:
3034
- name: Publish all specs to their https://www.w3.org/TR/ URLs
3135
run: cd document && make -e WD-echidna-CI
3236
env:
33-
W3C_STATUS: WD
37+
W3C_STATUS: ${{ github.event_name == 'push' && 'WD' || inputs.w3c-status }}
3438
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
3539
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
3640
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}

0 commit comments

Comments
 (0)