Skip to content

Commit e9bd42c

Browse files
nyurikemilio
authored andcommitted
Fix CI to not run publish all the time
1 parent 9ce9a1c commit e9bd42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
jobs:
1212
cargo-publish:
1313
runs-on: ubuntu-latest
14-
if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.workflow.name == 'Release') }}
14+
if: ${{ !github.event.pull_request && (github.event.workflow_run.conclusion == 'success') && (github.event.workflow.name == 'Release') }}
1515
steps:
1616
- name: Print workflow event name
1717
run: echo "${{ github.event.workflow.name }}"

0 commit comments

Comments
 (0)