Skip to content

Commit

Permalink
fix(build): Github action trigger on draft
Browse files Browse the repository at this point in the history
Closes #1180
  • Loading branch information
jolevesq authored and Johann Levesque committed Jul 19, 2023
1 parent 2c2e17e commit a2eb5bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy process on Pull Request

on:
pull_request_target:
types: [opened, synchronize, closed]
types: [opened, synchronize, closed, ready_for_review]

push:
branches:
Expand Down Expand Up @@ -53,15 +53,15 @@ jobs:
install-build:
name: Build demo files
needs: [check-member]
if: github.event.pull_request.merged == false || github.event.pull_request.merged == true
if: github.event.pull_request.merged == false || github.event.pull_request.merged == true && !github.event.pull_request.draft
uses: ./.github/workflows/build.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}

deploy-public:
name: Deploy public
needs: [install-build]
if: github.event.pull_request.merged == true && github.head_ref != ''
if: github.event.pull_request.merged == true && github.head_ref != '' && !github.event.pull_request.draft
uses: ./.github/workflows/deploy.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}
Expand Down

0 comments on commit a2eb5bd

Please sign in to comment.