We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecccff9 commit 3daa048Copy full SHA for 3daa048
.github/workflows/build.yml
@@ -30,9 +30,11 @@ jobs:
30
steps:
31
- name: Checkout code
32
uses: actions/checkout@v4
33
- # No ref parameter needed - uses correct ref automatically:
34
- # - For PRs: merge commit (PR changes + latest main)
35
- # - For pushes: the pushed commit
+ with:
+ # - For PRs: PR head commit
+ # - For pushes: the pushed commit
36
+ ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
37
+
38
39
- name: Setup Node.js
40
uses: actions/setup-node@v4
0 commit comments