Skip Integration Tests and Push branches and PRs from fork (#1936)

Signed-off-by: Dmitry Mazurov <dimabzz@gmail.com>

Signed-off-by: Dmitry Mazurov <dimabzz@gmail.com>
This commit is contained in:
Dmitry Mazurov
2022-11-02 17:24:39 +03:00
committed by GitHub
parent 0e8561a1c5
commit dc4ba652b4
2 changed files with 2 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ jobs:
buildx:
name: Push branches and PRs
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'amir20/dozzle' }}
if: ${{ !github.event.repository.fork && !github.event.pull_request.head.repo.fork && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'amir20/dozzle') }}
steps:
- name: Docker meta
id: meta

View File

@@ -37,6 +37,7 @@ jobs:
run: make test SKIP_ASSET=1
int-test:
name: Integration Tests
if: ${{ !github.event.repository.fork && !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- name: Checkout code