Skip to content

Commit 3bb9fc4

Browse files
committed
ci: dont publish docs for PRs
1 parent 35fabd7 commit 3bb9fc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
deploy:
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'master' }}
1717
environment:
1818
name: github-pages
1919
url: ${{ steps.deployment.outputs.page_url }}

.github/workflows/version-or-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: read-all
1111

1212
jobs:
1313
release:
14-
if: ${{ github.repository_owner == 'js2me' && github.event.workflow_run.conclusion == 'success' }}
14+
if: ${{ github.event.workflow_run.head_branch == 'master' && github.event.workflow_run.conclusion == 'success' }}
1515
permissions:
1616
contents: write # to create release
1717
id-token: write # to generate provenance

0 commit comments

Comments
 (0)