Skip to content

Commit

Permalink
try not skip testexamplescomplete when globalsetup was skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Jan 3, 2025
1 parent 1e284cd commit 8348685
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-examples-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
set -e
export REMOTE_SCRIPT="https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/avm_scripts"
export REMOTE_SCRIPT="https://raw.githubusercontent.com/Azure/tfmod-scaffold/global-setup/avm_scripts"
curl -H 'Cache-Control: no-cache, no-store' -sSL "$REMOTE_SCRIPT/prepare-credential.sh" -o prepare-credential.sh
source ./prepare-credential.sh
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
run: |
set -e
export REMOTE_SCRIPT="https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/avm_scripts"
export REMOTE_SCRIPT="https://raw.githubusercontent.com/Azure/tfmod-scaffold/global-setup/avm_scripts"
curl -H 'Cache-Control: no-cache, no-store' -sSL "$REMOTE_SCRIPT/prepare-credential.sh" -o prepare-credential.sh
source ./prepare-credential.sh
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
run: |
set -e
export REMOTE_SCRIPT="https://raw.githubusercontent.com/Azure/tfmod-scaffold/main/avm_scripts"
export REMOTE_SCRIPT="https://raw.githubusercontent.com/Azure/tfmod-scaffold/global-setup/avm_scripts"
curl -H 'Cache-Control: no-cache, no-store' -sSL "$REMOTE_SCRIPT/prepare-credential.sh" -o prepare-credential.sh
source ./prepare-credential.sh
Expand All @@ -164,7 +164,7 @@ jobs:
# This job is only run when all the previous jobs are successful.
# We can use it for PR validation to ensure all examples have completed.
testexamplescomplete:
if: github.event.repository.name != 'terraform-azurerm-avm-template' && github.event.pull_request.head.repo.fork == false
if: always() && !failure() && !cancelled() && github.event.repository.name != 'terraform-azurerm-avm-template' && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
needs: testexamples
steps:
Expand Down

0 comments on commit 8348685

Please sign in to comment.