From dc4ba652b4ab6317336e3b51f54ea8f71c80fff6 Mon Sep 17 00:00:00 2001 From: Dmitry Mazurov Date: Wed, 2 Nov 2022 17:24:39 +0300 Subject: [PATCH] Skip Integration Tests and Push branches and PRs from fork (#1936) Signed-off-by: Dmitry Mazurov Signed-off-by: Dmitry Mazurov --- .github/workflows/dev.yml | 2 +- .github/workflows/test.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index c500bea6..b07302a1 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5126df39..94123fac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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