Update docker-slim.yml (#2449)

Fixed a bug that causes docker-slim action to run and fail on forked
repositories. #2103
This commit is contained in:
Tian Lan 2024-05-28 00:04:02 +08:00 committed by GitHub
parent c7265a9bcb
commit da4486507a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ on:
jobs:
build:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow
if: ${{ github.event.workflow_run.conclusion == 'success' }} and github.repository_owner == 'alshedivat'
if: ${{ github.event.workflow_run.conclusion == 'success' and github.repository_owner == 'alshedivat' }}
runs-on: ubuntu-latest
defaults:
run: