diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c43743e9..36dece14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: publish: needs: [verify] if: | - (github.event_name == 'push' && github.event.push.head.repo.full_name == 'Bubka/2fauth') || + (github.event_name == 'push' && github.repository == '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: diff --git a/.github/workflows/dockerhub-readme.yml b/.github/workflows/dockerhub-readme.yml index 0fe5510a..9dd0922f 100644 --- a/.github/workflows/dockerhub-readme.yml +++ b/.github/workflows/dockerhub-readme.yml @@ -8,7 +8,7 @@ on: jobs: dockerHubDescription: if: | - (github.event_name == 'push' && github.event.push.head.repo.full_name == 'Bubka/2fauth') || + (github.event_name == 'push' && github.repository == '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: