Skip to content

Commit

Permalink
ci: prevent jobs running on PRs from forks
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Al Sahaf <[email protected]>
  • Loading branch information
mohammed90 committed Nov 30, 2024
1 parent 22b9d51 commit c288727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
s390x-test:
name: test (s390x on IBM Z)
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
if: (github.repository == 'caddyserver/caddy' && github.event_name != 'pull_request') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'caddyserver/caddy') && github.actor != 'dependabot[bot]'
continue-on-error: true # August 2020: s390x VM is down due to weather and power issues
steps:
- name: Checkout code
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:

goreleaser-check:
runs-on: ubuntu-latest
if: github.repository_owner == 'caddyserver' && github.actor != 'dependabot[bot]'
if: (github.repository == 'caddyserver/caddy' && github.event_name != 'pull_request') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'caddyserver/caddy') && github.actor != 'dependabot[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit c288727

Please sign in to comment.