Skip to content

Commit

Permalink
Fix CI to not run publish all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 9, 2025
1 parent 59a43e1 commit fc74688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
cargo-publish:
runs-on: ubuntu-latest
if: ${{ (github.event.workflow_run.conclusion == 'success') && (github.event.workflow.name == 'Release') }}
if: ${{ !github.event.pull_request && (github.event.workflow_run.conclusion == 'success') && (github.event.workflow.name == 'Release') }}
steps:
- name: Print workflow event name
run: echo "${{ github.event.workflow.name }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ permissions:
# will be marked as a prerelease.
on:
pull_request:
branches: [ "main" ]
push:
tags:
- '**[0-9]+.[0-9]+.[0-9]+*'
Expand Down

0 comments on commit fc74688

Please sign in to comment.