Skip to content

Commit

Permalink
Merge pull request #292 from puppetlabs/maint-remove_redundant_condit…
Browse files Browse the repository at this point in the history
…ional_checkout

(maint) - Remove redundant conditional checkout
  • Loading branch information
pmcmaw authored Jun 11, 2024
2 parents e68e1e3 + 04454fe commit 057dfee
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,7 @@ jobs:
mend:
runs-on: ubuntu-latest
steps:
# If we are on a PR, checkout the PR head sha, else checkout the default branch
- name: "Set the checkout ref"
id: set_ref
run: |
if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
echo "ref=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
else
echo "ref=${{ github.ref }}" >> $GITHUB_OUTPUT
fi
- uses: actions/checkout@v4
with:
ref: ${{ steps.set_ref.outputs.ref }}

- uses: "actions/setup-java@v4"
with:
Expand Down

0 comments on commit 057dfee

Please sign in to comment.