Skip to content

Commit

Permalink
test(e2e): add git_ref for manual trigger to allow testing on branches (
Browse files Browse the repository at this point in the history
#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 <[email protected]>
  • Loading branch information
charliedmcb and Charlie McBride authored Nov 16, 2023
1 parent 887970a commit 6be73ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/resolve-args.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6be73ba

Please sign in to comment.