Fix disabled CI CD for all non pull requests
This commit is contained in:
parent
3df95c8d59
commit
84ba8d0487
2 changed files with 3 additions and 3 deletions
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
|
|
@ -30,12 +30,12 @@ jobs:
|
|||
# deploy
|
||||
|
||||
build:
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
name: Build
|
||||
uses: ./.github/workflows/build.yml
|
||||
|
||||
deploy:
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
name: Deploy
|
||||
needs: [ build ]
|
||||
uses: ./.github/workflows/deploy.yml
|
||||
|
|
|
|||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
name: Docker build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Reference in a new issue