From 44ac27af398977e645f5ea3cd8fe55468d0c8249 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:07:25 +0530 Subject: [PATCH] Revert pull_request_target changes --- .github/workflows/mend_ruby.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/mend_ruby.yml b/.github/workflows/mend_ruby.yml index aa02100..a6a7d1b 100644 --- a/.github/workflows/mend_ruby.yml +++ b/.github/workflows/mend_ruby.yml @@ -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()