Skip to content

Commit

Permalink
Revert pull_request_target changes
Browse files Browse the repository at this point in the history
  • Loading branch information
malikparvez authored Jun 13, 2024
1 parent 4fb799a commit 44ac27a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/mend_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,11 @@ jobs:
exit 1
fi
# If we are on a PR, checkout the PR head sha, else checkout the default branch
- name: "Set the checkout ref"
if: success()
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
- name: "checkout"
if: success()
uses: "actions/checkout@v4"
with:
fetch-depth: 1
ref: ${{ steps.set_ref.outputs.ref }}

- name: "setup ruby"
if: success()
Expand Down

0 comments on commit 44ac27a

Please sign in to comment.