Skip to content

Commit

Permalink
Checkout the right branch depending on event
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisiaM committed Jun 3, 2021
1 parent 6eae4ba commit 564f5c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.version }}
- uses: actions/checkout@v2
- if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
with:
ref: ${{ format('refs/pull/{0}/merge', github.event.number) }}
- if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v2
- run: ./scripts/run-tests.sh
automerge:
needs: test
Expand Down

0 comments on commit 564f5c1

Please sign in to comment.