Use fixed ref for PR

This commit is contained in:
MattIPv4
2022-04-07 14:59:10 +01:00
parent 37bf7f713c
commit e7bf1a6a20

View File

@@ -11,8 +11,14 @@ on:
jobs:
validate:
runs-on: ubuntu-latest
env:
GH_EVENT_HASH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.GH_EVENT_HASH }}
- uses: actions/checkout@v3
with: