diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index e854e127..88ac4035 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -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" diff --git a/lib/content/post-dependabot.yml b/lib/content/post-dependabot.yml index 77b21cf7..7dba72e6 100644 --- a/lib/content/post-dependabot.yml +++ b/lib/content/post-dependabot.yml @@ -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 diff --git a/tap-snapshots/test/apply/source-snapshots.js.test.cjs b/tap-snapshots/test/apply/source-snapshots.js.test.cjs index 3249cc0d..440120a9 100644 --- a/tap-snapshots/test/apply/source-snapshots.js.test.cjs +++ b/tap-snapshots/test/apply/source-snapshots.js.test.cjs @@ -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" @@ -2065,7 +2065,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" @@ -3341,7 +3341,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"