diff --git a/.github/workflows/pr-closed.yml b/.github/workflows/pr-closed.yml index de67d18..6c9a551 100644 --- a/.github/workflows/pr-closed.yml +++ b/.github/workflows/pr-closed.yml @@ -16,7 +16,6 @@ jobs: # Clean up OpenShift when PR closed, no conditions cleanup-openshift: name: Cleanup OpenShift - if: "!github.event.pull_request.head.repo.fork" runs-on: ubuntu-24.04 timeout-minutes: 10 steps: diff --git a/action.yml b/action.yml index d4e2124..283a125 100644 --- a/action.yml +++ b/action.yml @@ -113,7 +113,7 @@ runs: # Process variables and inputs # Remote/override repo is required if one has been specified (input) - name: Checkout remote/override repo - if: ${{ github.repository }} != ${{ inputs.repository }} + if: github.repository != inputs.repository uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} @@ -240,5 +240,5 @@ runs: # Action repo needs to be present for cleanup/tests - name: Checkout local repo to make sure action.yml is present - if: ${{ github.repository }} != ${{ inputs.repository }} + if: github.repository != inputs.repository uses: actions/checkout@v4