2024-07-19 08:14:12 +00:00
|
|
|
name: 'On demand tests run'
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
trigger:
|
2024-07-31 17:48:14 +00:00
|
|
|
type: choice
|
|
|
|
description: 'Event name: it will be used to filter the jobs to run in ci.yml.'
|
2024-07-19 08:14:12 +00:00
|
|
|
required: true
|
2024-07-31 17:48:14 +00:00
|
|
|
options:
|
|
|
|
- push
|
|
|
|
- daily-checks
|
|
|
|
- pre-release
|
|
|
|
- on-demand
|
|
|
|
- custom
|
|
|
|
default: on-demand
|
|
|
|
custom-trigger:
|
|
|
|
type: string
|
|
|
|
description: 'Custom event name: In case the `Event name` choice is `custom`, this field is required.'
|
|
|
|
required: false
|
2024-07-19 08:14:12 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-07-31 17:48:14 +00:00
|
|
|
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
|
|
|
|
|
2024-07-19 08:14:12 +00:00
|
|
|
run-tests:
|
|
|
|
name: 'Run tests'
|
|
|
|
uses: ./.github/workflows/ci.yml
|
|
|
|
with:
|
2024-07-31 17:48:14 +00:00
|
|
|
trigger: ${{ inputs.trigger == 'custom' && inputs.custom-trigger || inputs.trigger }}
|
2024-07-19 08:14:12 +00:00
|
|
|
secrets: inherit
|