Skip to content

Commit

Permalink
Merge pull request WLAN-Pi#43 from WLAN-Pi/dont-run-slack-when-PR-fro…
Browse files Browse the repository at this point in the history
…m-fork

Stop Slack from running on PR from fork
  • Loading branch information
joshschmelzle authored Oct 3, 2024
2 parents 2051bc5 + cf678cb commit fb76167
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-archive-debian-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-packagecloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb76167

Please sign in to comment.