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