Skip to content

Commit

Permalink
Fix typo in automerge script (#466)
Browse files Browse the repository at this point in the history
* use non-contextual github default env var

* make sha conditional on trigger event

* reverse conditionals for readability

* use git rev-parse for non-PR event SHAs

* upgrade checkout to v4

* fix typo

---------

Co-authored-by: Katherine Fairchild <[email protected]>
  • Loading branch information
kvfairchild and Katherine Fairchild authored Jan 8, 2024
1 parent 240a386 commit 2ff2922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automerge_plugin-only_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
- name: Get SHA of last commit on PR branch
run: |
if [ [ ${{ github.event_name }} == "pull_request" ]]; then
TRIGGER_SHA=${{ github.event.pull_request.head.sha }}
echo "TRIGGER_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
else
TRIGGER_SHA=$( git rev-parse HEAD )
echo "TRIGGER_SHA=$( git rev-parse HEAD )" >> $GITHUB_ENV
fi
echo "Checking test status for SHA $TRIGGER_SHA"
- name: Get test results and ensure automergeable
Expand Down

0 comments on commit 2ff2922

Please sign in to comment.