Skip to content

Commit

Permalink
(maint) - Remove redundant conditional checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Jun 11, 2024
1 parent e68e1e3 commit 04454fe
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 04454fe

Please sign in to comment.