migrate to new release branch based workflow
This commit is contained in:
parent
ca492527f3
commit
b482962a1b
23
.github/workflows/e2e.yaml
vendored
23
.github/workflows/e2e.yaml
vendored
@ -1,11 +1,11 @@
|
|||||||
name: E2E Test Check
|
name: E2E Test Check
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
pull_request:
|
||||||
inputs:
|
types: ['opened', 'synchronize']
|
||||||
pr_number:
|
paths:
|
||||||
description: '(Required) pull request number to test against'
|
- '.github/**'
|
||||||
type: string
|
- '.github/workflows/**'
|
||||||
required: true
|
- 'quickstart/**'
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
@ -17,14 +17,24 @@ jobs:
|
|||||||
environment:
|
environment:
|
||||||
name: acctests
|
name: acctests
|
||||||
steps:
|
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](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
|
||||||
|
}
|
||||||
- name: checkout
|
- name: checkout
|
||||||
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
|
||||||
- name: checkout pr
|
- name: checkout pr
|
||||||
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run:
|
run:
|
||||||
gh pr checkout ${{ inputs.pr_number }}
|
gh pr checkout ${{ inputs.pr_number }}
|
||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v34
|
uses: tj-actions/changed-files@v34
|
||||||
with:
|
with:
|
||||||
@ -34,6 +44,7 @@ jobs:
|
|||||||
files_ignore: "**/TestRecord.md"
|
files_ignore: "**/TestRecord.md"
|
||||||
dir_names_max_depth: 2
|
dir_names_max_depth: 2
|
||||||
- name: test pr
|
- name: test pr
|
||||||
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
env:
|
env:
|
||||||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user