From 2de4ae770eda181cecadb30d37ee2d4d5403766a Mon Sep 17 00:00:00 2001 From: LH Date: Mon, 22 May 2023 17:26:35 +0200 Subject: [PATCH] Testing reusable flow 12 --- .github/workflows/run-e2e.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-e2e.yml b/.github/workflows/run-e2e.yml index 7a05be3..8ed6220 100644 --- a/.github/workflows/run-e2e.yml +++ b/.github/workflows/run-e2e.yml @@ -4,6 +4,10 @@ on: environment: required: true type: string + branch: + required: false + type: string + default: feat/v1 # TODO: Change to master # TODO: Set token perms @@ -11,9 +15,16 @@ jobs: load-config: runs-on: [ self-hosted ] steps: + - name: Check out e2e repository + uses: actions/checkout@v3.5.2 + with: + repository: homecentr/e2e + ref: refs/heads/${{ inputs.branch }} + path: e2e + - name: Load variables id: vars - run: cat ./environments/local.${{ inputs.environment }}.env >> "$GITHUB_OUTPUT" + run: cat ./e2e/environments/local.${{ inputs.environment }}.env >> "$GITHUB_OUTPUT" e2e-tests: runs-on: [ self-hosted ] @@ -36,7 +47,7 @@ jobs: uses: actions/checkout@v3.5.2 with: repository: homecentr/e2e - ref: refs/heads/master + ref: refs/heads/${{ inputs.branch }} path: e2e - name: Install dependencies