Skip to content

Commit 98c40a8

Browse files
authored
Merge pull request #893 from puppetlabs/maint-remove_redundant_conditional_checkout
(maint) - Remove redundant conditional checkout
2 parents a61ed26 + 60f351c commit 98c40a8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/mend.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,7 @@ jobs:
1212
mend:
1313
runs-on: ubuntu-latest
1414
steps:
15-
# If we are on a PR, checkout the PR head sha, else checkout the default branch
16-
- name: "Set the checkout ref"
17-
id: set_ref
18-
run: |
19-
if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
20-
echo "ref=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
21-
else
22-
echo "ref=${{ github.ref }}" >> $GITHUB_OUTPUT
23-
fi
24-
2515
- uses: actions/checkout@v4
26-
with:
27-
ref: ${{ steps.set_ref.outputs.ref }}
2816

2917
- name: 'setup node: 18 platform: ${{ runner.os }}'
3018
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)