Running validation workflows with plan:plan-vm-dynamic-cluster #6
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: IT Validation for VM Dynamic Cluster | |
run-name: Running validation workflows with plan:${{ github.event_name == 'schedule' && 'plan-vm-dynamic-cluster' || inputs.it_plan }} | |
on: | |
schedule: | |
- cron: '0 15 * * 1' # Runs Every Monday at 15:00 UTC | |
workflow_dispatch: | |
inputs: | |
it_plan: | |
description: 'Path to the validation plan file' | |
required: true | |
type: choice | |
options: | |
- plan-vm-dynamic-cluster | |
default: plan-vm-dynamic-cluster | |
jobs: | |
execute-validation: | |
runs-on: ubuntu-latest | |
outputs: | |
results: ${{ steps.it-validation.outputs.results }} | |
report_url: ${{ steps.it-validation.outputs.report_url }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set validation plan file | |
id: set-plan-file | |
run: | | |
case "${{ inputs.it_plan || 'plan-vm-dynamic-cluster' }}" in | |
plan-vm-dynamic-cluster) | |
IT_FILE=".github/it/validation-plan-vm-dynamic-cluster.json" | |
;; | |
*) | |
echo "Unknown plan option: ${{ inputs.it_plan }}" | |
exit 1 | |
;; | |
esac | |
echo "it_file=$IT_FILE" >> $GITHUB_OUTPUT | |
- name: Execute IT Validation | |
id: it-validation | |
uses: ./.github/actions/it | |
with: | |
it_file: ${{ steps.set-plan-file.outputs.it_file }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} |