Disable CD on pr
This commit is contained in:
parent
f3533c4b36
commit
587b0f7ca1
1 changed files with 0 additions and 18 deletions
18
.github/workflows/cd.yml
vendored
18
.github/workflows/cd.yml
vendored
|
|
@ -5,10 +5,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
pull_request:
|
|
||||||
types: [ opened, reopened, synchronize, labeled ]
|
|
||||||
workflow_dispatch: ~
|
workflow_dispatch: ~
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -18,25 +14,11 @@ permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# remove-deploy-label:
|
|
||||||
# name: Remove deploy label
|
|
||||||
# if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy')
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: mondeja/remove-labels-gh-action@v1
|
|
||||||
# with:
|
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# labels: |
|
|
||||||
# deploy
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
# we run the CD only on pull requests from the same repo
|
|
||||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
|
||||||
name: Build
|
name: Build
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
|
||||||
name: Deploy
|
name: Deploy
|
||||||
needs: [ build ]
|
needs: [ build ]
|
||||||
uses: ./.github/workflows/deploy.yml
|
uses: ./.github/workflows/deploy.yml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue