diff --git a/.github/workflows/build-and-archive-debian-package.yml b/.github/workflows/build-and-archive-debian-package.yml index 9173d5c..faf779b 100644 --- a/.github/workflows/build-and-archive-debian-package.yml +++ b/.github/workflows/build-and-archive-debian-package.yml @@ -60,7 +60,7 @@ jobs: name: ${{ env.filename }} path: ${{ steps.build-debian-package.outputs.deb-package }} slack-workflow-status: - if: ${{ always() && (github.repository_owner == 'WLAN-Pi') }} + if: ${{ always() && (github.repository_owner == 'WLAN-Pi') && (github.event.pull_request.head.repo.full_name == github.repository) }} name: Post Workflow Status to Slack needs: - sbuild diff --git a/.github/workflows/deploy-to-packagecloud.yml b/.github/workflows/deploy-to-packagecloud.yml index 0ab1070..1f6755d 100644 --- a/.github/workflows/deploy-to-packagecloud.yml +++ b/.github/workflows/deploy-to-packagecloud.yml @@ -82,7 +82,7 @@ jobs: packagecloud-distrib: debian/${{ matrix.distro }} packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} slack-workflow-status: - if: ${{ always() && (github.repository_owner == 'WLAN-Pi') }} + if: ${{ always() && (github.repository_owner == 'WLAN-Pi') && (github.event.pull_request.head.repo.full_name == github.repository) }} name: Post workflow status to Slack needs: - sbuild diff --git a/.github/workflows/test-python-package.yml b/.github/workflows/test-python-package.yml index e141026..5a8a1cd 100644 --- a/.github/workflows/test-python-package.yml +++ b/.github/workflows/test-python-package.yml @@ -53,7 +53,7 @@ jobs: tox slack-workflow-status: - if: ${{ always() && (github.repository_owner == 'WLAN-Pi') }} + if: ${{ always() && (github.repository_owner == 'WLAN-Pi') && (github.event.pull_request.head.repo.full_name == github.repository) }} name: Post Workflow Status to Slack needs: - python