From 8df77b09ed790592932f940afe8d1a08f00c8817 Mon Sep 17 00:00:00 2001 From: TwiN Date: Sat, 23 Sep 2023 15:36:19 -0400 Subject: [PATCH] ci: Fix fork conditional (#576) * ci: Fix fork conditional * ci: Fix fork conditional * ci: Fix fork conditional --- .github/workflows/publish-latest-to-ghcr.yml | 2 +- .github/workflows/publish-latest.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-latest-to-ghcr.yml b/.github/workflows/publish-latest-to-ghcr.yml index 1e70774b..7d3bd69b 100644 --- a/.github/workflows/publish-latest-to-ghcr.yml +++ b/.github/workflows/publish-latest-to-ghcr.yml @@ -10,7 +10,7 @@ concurrency: jobs: publish-latest-to-ghcr: runs-on: ubuntu-latest - if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.pull_request.head.repo.full_name == github.repository) }} + if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.workflow_run.head_repository.full_name == github.repository) }} permissions: contents: read packages: write diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 1c363ead..44a485db 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -10,7 +10,7 @@ concurrency: jobs: publish-latest: runs-on: ubuntu-latest - if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.pull_request.head.repo.full_name == github.repository) }} + if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.workflow_run.head_repository.full_name == github.repository) }} timeout-minutes: 60 steps: - uses: actions/checkout@v3