Skip to content

Commit

Permalink
fix(ci): don't deploy for PRs from forks when ref == main (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Apr 24, 2024
1 parent 06895ba commit 021b808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ jobs:
#########################################################

collect_webpages:
if: ${{ (github.head_ref == 'main' || github.ref_name == 'main') && inputs.id == 'linux-latest' }}
if: ${{ github.ref == 'refs/heads/main' && inputs.id == 'linux-latest' }}
name: Collect webpages
needs:
- doc_generate
Expand Down Expand Up @@ -434,7 +434,7 @@ jobs:
path: pages/

deploy_webpages:
if: ${{ (github.head_ref == 'main' || github.ref_name == 'main') && inputs.id == 'linux-latest' }}
if: ${{ github.ref == 'refs/heads/main' && inputs.id == 'linux-latest' }}
name: Deploy webpages
needs: collect_webpages
permissions:
Expand Down

0 comments on commit 021b808

Please sign in to comment.