On demand checks core-e2e-gutenberg #354
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'On demand checks' | |
| run-name: On demand checks ${{ inputs.custom-trigger != '' && inputs.custom-trigger || inputs.trigger }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| trigger: | |
| type: choice | |
| description: 'Event name: it will be used to filter the jobs to run in ci.yml.' | |
| required: true | |
| options: | |
| - pre-release | |
| - custom | |
| default: pre-release | |
| custom-trigger: | |
| type: string | |
| description: 'Custom event name: In case the `Event name` choice is `custom`, this field is required.' | |
| required: false | |
| jobs: | |
| validate-input: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Validate input' | |
| run: | | |
| if [ "${{ inputs.trigger }}" == "custom" ] && [ -z "${{ inputs.custom-trigger }}" ]; then | |
| echo "Custom event name is required when event name choice `custom`." | |
| exit 1 | |
| fi | |
| run-tests: | |
| name: 'Run tests' | |
| uses: ./.github/workflows/ci.yml | |
| with: | |
| trigger: ${{ inputs.trigger == 'custom' && inputs.custom-trigger || inputs.trigger }} | |
| secrets: inherit |