Merge pull request #9739 from certbot/CI/workflow-patch-forks

Skip Mattermost Job for Forked Repos
This commit is contained in:
Alexis 2023-07-24 13:12:28 -07:00 committed by GitHub
commit 3e84b94308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,8 @@ on:
jobs:
if_merged:
if: github.event.pull_request.merged == true
# Forked repos can not access Mattermost secret.
if: github.event.pull_request.merged == true && !github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- name: Create Mattermost Message