File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ # Allows us to manually trigger an alpha
3+ # workflow_dispatch can be given an alternative 'ref' to release from a feature branch
4+ workflow_dispatch :
5+ inputs :
6+ alphaVersion :
7+ description : ' The semver version string. MUST end in -alpha.#'
8+ required : true
9+ type : string
10+ wetRun :
11+ description : ' If true, will publish to npm'
12+ required : true
13+ type : boolean
14+
15+ name : release-alpha
16+
17+ jobs :
18+ release-nightly :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - run : |
22+ [[ "${{ inputs.alphaVersion }}" =~ '-alpha(\.(0|[1-9][0-9]+))?$' ]] || { echo "Invalid alphaVersion string" ; exit 1; }
23+ [[ "${{ inputs.wetRun }}" == "true" || "${{ inputs.wetRun }}" == "false" ]] || { echo "boolean wetRun must be provided" ; exit 1; }
24+ shell: bash
25+ - run : |
26+ echo "${{ inputs.alphaVersion }}"
27+ echo "${{ inputs.wetRun }}"
28+ shell: bash
You can’t perform that action at this time.
0 commit comments