Skip to content

Commit

Permalink
Switch to shared repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Sep 17, 2024
1 parent d8d44aa commit 7c0ee21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,24 @@

jobs:
check:
name: Check for Fork
runs-on: ubuntu-latest
steps:
- name: Checking for Fork
shell: pwsh
run: |
$isFork = "${{ github.event.pull_request.head.repo.fork }}"
if($isFork -eq "true") {
echo "::warning::This workflow is disabled for forked repositories. Please follow the release branch process if end to end tests are required. https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository"
echo "### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required." >> $env:GITHUB_STEP_SUMMARY
exit 1
} else {
echo "This is not a forked repository. Proceeding with the workflow."
}
run-e2e-tests:
if: github.event.repository.name != 'terraform-azurerm-avm-template' && github.event.pull_request.head.repo.fork == false
uses: Azure/terraform-azurerm-avm-template/.github/workflows/test-examples-template.yml@main
uses: Azure/Azure-Verified-Modules-Workflows/.github/workflows/terraform-e2e-test-examples.yml@49fff3556b57f4163edcc145b64d3929c55fe49b
name: end to end
secrets: inherit
permissions:
Expand Down

0 comments on commit 7c0ee21

Please sign in to comment.