Skip to content

Commit 298600d

Browse files
authored
fix: use head.ref for post dependabot checkout (#224)
1 parent aef199e commit 298600d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/post-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v3
2121
with:
22-
ref: ${{ github.ref_name }}
22+
ref: ${{ github.event.pull_request.head.ref }}
2323
- name: Setup Git User
2424
run: |
2525
git config --global user.email "npm-cli+bot@github.com"

lib/content/post-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
{{> job
1212
jobName="template-oss"
1313
jobIf="github.actor == 'dependabot[bot]'"
14-
jobCheckout=(obj ref="${{ github.ref_name }}")
14+
jobCheckout=(obj ref="${{ github.event.pull_request.head.ref }}")
1515
}}
1616
- name: Fetch Dependabot Metadata
1717
id: metadata

tap-snapshots/test/apply/source-snapshots.js.test.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ jobs:
584584
- name: Checkout
585585
uses: actions/checkout@v3
586586
with:
587-
ref: \${{ github.ref_name }}
587+
ref: \${{ github.event.pull_request.head.ref }}
588588
- name: Setup Git User
589589
run: |
590590
git config --global user.email "npm-cli+bot@github.com"
@@ -2066,7 +2066,7 @@ jobs:
20662066
- name: Checkout
20672067
uses: actions/checkout@v3
20682068
with:
2069-
ref: \${{ github.ref_name }}
2069+
ref: \${{ github.event.pull_request.head.ref }}
20702070
- name: Setup Git User
20712071
run: |
20722072
git config --global user.email "npm-cli+bot@github.com"
@@ -3343,7 +3343,7 @@ jobs:
33433343
- name: Checkout
33443344
uses: actions/checkout@v3
33453345
with:
3346-
ref: \${{ github.ref_name }}
3346+
ref: \${{ github.event.pull_request.head.ref }}
33473347
- name: Setup Git User
33483348
run: |
33493349
git config --global user.email "npm-cli+bot@github.com"

0 commit comments

Comments
 (0)