Skip to content

Commit

Permalink
fix: use head.ref for post dependabot checkout (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored Oct 5, 2022
1 parent aef199e commit 298600d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
Expand Down
2 changes: 1 addition & 1 deletion lib/content/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
{{> job
jobName="template-oss"
jobIf="github.actor == 'dependabot[bot]'"
jobCheckout=(obj ref="${{ github.ref_name }}")
jobCheckout=(obj ref="${{ github.event.pull_request.head.ref }}")
}}
- name: Fetch Dependabot Metadata
id: metadata
Expand Down
6 changes: 3 additions & 3 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: \${{ github.ref_name }}
ref: \${{ github.event.pull_request.head.ref }}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
Expand Down Expand Up @@ -2066,7 +2066,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: \${{ github.ref_name }}
ref: \${{ github.event.pull_request.head.ref }}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
Expand Down Expand Up @@ -3343,7 +3343,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: \${{ github.ref_name }}
ref: \${{ github.event.pull_request.head.ref }}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
Expand Down

0 comments on commit 298600d

Please sign in to comment.