From fd0a21743aa3e1659eb115ca63f1b677cf89503e Mon Sep 17 00:00:00 2001 From: kenorb Date: Sun, 11 Feb 2024 23:51:37 +0000 Subject: [PATCH] GHA: Adds if github.repository condition --- .github/workflows/platform-linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/platform-linux.yml b/.github/workflows/platform-linux.yml index 81bdcd2b..3cd0c942 100644 --- a/.github/workflows/platform-linux.yml +++ b/.github/workflows/platform-linux.yml @@ -4,7 +4,7 @@ name: Platform (Linux) env: ARTIFACT_NAME: ${{ inputs.artifact || 'platform' }} CHECKOUT_REF: ${{ inputs.ref || 'dev' }} - CLEANUP: ${{ inputs.cleanup || false }} + CLEANUP: ${{ inputs.cleanup || true }} REPOSITORY: EA31337/EA-Tester VERSION: ${{ inputs.version || 5 }} @@ -79,6 +79,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: geekyeggo/delete-artifact@v4 - if: env.CLEANUP + if: env.CLEANUP && github.repository == env.REPOSITORY with: name: ${{ env.ARTIFACT_NAME }}