Skip to content

Commit

Permalink
GHA: Adds if github.repository condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Feb 11, 2024
1 parent 1c862c8 commit fd0a217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/platform-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

0 comments on commit fd0a217

Please sign in to comment.