From 6be73baef5f20434289b37ec99a9f8d5ebbe0120 Mon Sep 17 00:00:00 2001 From: Charlie McBride <33269602+charliedmcb@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:20:57 -0800 Subject: [PATCH] test(e2e): add git_ref for manual trigger to allow testing on branches (#25) * add git_ref for manual trigger to allow testing on branches * change to sha so there's no chance that it will change throughtout the test * add another test case to the matrix as a test * remove fake test matrix --------- Co-authored-by: Charlie McBride --- .github/workflows/resolve-args.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/resolve-args.yaml b/.github/workflows/resolve-args.yaml index 1203b5082..4f743285f 100644 --- a/.github/workflows/resolve-args.yaml +++ b/.github/workflows/resolve-args.yaml @@ -18,6 +18,8 @@ jobs: run: | if [[ "${{ github.event_name }}" == "workflow_run" ]]; then echo GIT_REF="$(tail -n 1 /tmp/artifacts/metadata.txt)" >> "$GITHUB_OUTPUT" + elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then + echo GIT_REF="${{ github.sha }}" >> "$GITHUB_OUTPUT" else echo GIT_REF="" >> "$GITHUB_OUTPUT" fi