ci: don't run s390x tests on PRs of forks (#3494)

* ci: don't run s390x tests on PRs of forks

* ci: check if fork by matchinging name from event against name of repo
This commit is contained in:
Mohammed Al Sahaf 2020-06-12 22:51:04 +03:00 committed by GitHub
parent d84a5d8427
commit 5b48f784ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ jobs:
s390x-test: s390x-test:
name: test (s390x on IBM Z) name: test (s390x on IBM Z)
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.repository == 'caddyserver/caddy' }} if: github.event.pull_request.head.repo.full_name == github.repository
steps: steps:
- name: Checkout code into the Go module directory - name: Checkout code into the Go module directory
uses: actions/checkout@v2 uses: actions/checkout@v2