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
This commit is contained in:
Quentin McGaw 2021-08-10 06:08:20 -07:00 committed by GitHub
parent d1927fc41f
commit 03e7ca2975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -65,7 +65,9 @@ jobs:
publish: publish:
needs: [verify] 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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4

View File

@ -7,7 +7,9 @@ on:
- .github/workflows/dockerhub-readme.yml - .github/workflows/dockerhub-readme.yml
jobs: jobs:
dockerHubDescription: 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 runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout