mirror of
https://github.com/SrIzan10/js.org.git
synced 2026-05-01 10:45:28 +00:00
Use fixed ref for PR
This commit is contained in:
6
.github/workflows/validate.yml
vendored
6
.github/workflows/validate.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user