Skip to content

Commit

Permalink
branches
Browse files Browse the repository at this point in the history
  • Loading branch information
eemrdog committed Dec 2, 2024
1 parent 146a091 commit 7595bb8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
pull_request:
branches:
- dev
- dev-core
- test
- demo-envs

workflow_dispatch: # Allows manual triggering of the workflow
inputs:
Expand All @@ -15,11 +15,6 @@ on:
required: true
default: '["demo_ar_workflows_gitlab","demo_ar_workflows_ansible"]'
type: string
# custom_use_cases:
# description: 'Enter the custom use cases with GitHub URLs to run (comma-separated)'
# required: false
# default: '[""]'
# type: string
providers:
description: 'Select the providers to run (comma-separated)'
required: true
Expand All @@ -29,7 +24,7 @@ on:
destroy_resources:
description: 'Set to "true" to enable resource destruction'
required: true
default: 'false'
default: 'true'
type: string


Expand Down Expand Up @@ -64,7 +59,7 @@ jobs:
echo "providers=${{ env.DEFAULT_PROVIDERS }}" >> "$GITHUB_ENV"
if [[ "${{ github.base_ref }}" == "dev" ]]; then
echo "destroy_resources=true" >> "$GITHUB_ENV"
elif [[ "${{ github.base_ref }}" == "test" ]]; then
elif [[ "${{ github.base_ref }}" == "test" || "${{ github.base_ref }}" == "demo-envs" ]]; then
echo "destroy_resources=false" >> "$GITHUB_ENV"
fi
fi
Expand All @@ -81,7 +76,7 @@ jobs:
echo "providers=${{ env.DEFAULT_PROVIDERS }}" >> "$GITHUB_OUTPUT"
if [[ "${{ github.base_ref }}" == "dev" ]]; then
echo "destroy_resources=true" >> "$GITHUB_OUTPUT"
elif [[ "${{ github.base_ref }}" == "test" ]]; then
elif [[ "${{ github.base_ref }}" == "test" || "${{ github.base_ref }}" == "demo-envs" ]]; then
echo "destroy_resources=false" >> "$GITHUB_OUTPUT"
fi
fi
Expand Down

0 comments on commit 7595bb8

Please sign in to comment.