Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Add condition to only deploy on merged == false
  • Loading branch information
jolevesq authored Sep 26, 2022
1 parent cbdeea0 commit 49c9b53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ on:

jobs:
build:
if: github.event.pull_request.merged == false
name: Develop build for demo files
uses: ./.github/workflows/build.yml
with:
cache_sha: ${{ github.event.pull_request.head.sha || github.sha }}

deploy-pages:
needs: [build]
if: github.event.pull_request.merged == false
name: Deploy the files
uses: ./.github/workflows/deploy.yml
with:
Expand Down

0 comments on commit 49c9b53

Please sign in to comment.