From 03e7ca297599930f2c6aeab863e10c2cf3bdb6c6 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 10 Aug 2021 06:08:20 -0700 Subject: [PATCH] Fix try 1: if block in CI for forked PRs (#41) * Fix try 1: if block in CI for forked PRs * CI fix try 2 --- .github/workflows/ci.yml | 4 +++- .github/workflows/dockerhub-readme.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7594138..c43743e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,9 @@ jobs: publish: needs: [verify] - if: github.event_name == 'push' && github.event.pull_request.head.repo.full_name == github.repository + if: | + (github.event_name == 'push' && github.event.push.head.repo.full_name == 'Bubka/2fauth') || + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'Bubka/2fauth' && github.actor != 'dependabot[bot]') runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 diff --git a/.github/workflows/dockerhub-readme.yml b/.github/workflows/dockerhub-readme.yml index 9079a189..0fe5510a 100644 --- a/.github/workflows/dockerhub-readme.yml +++ b/.github/workflows/dockerhub-readme.yml @@ -7,7 +7,9 @@ on: - .github/workflows/dockerhub-readme.yml jobs: dockerHubDescription: - if: github.event.pull_request.head.repo.full_name == github.repository + if: | + (github.event_name == 'push' && github.event.push.head.repo.full_name == 'Bubka/2fauth') || + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'Bubka/2fauth' && github.actor != 'dependabot[bot]') runs-on: ubuntu-latest steps: - name: Checkout