We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a43e1 commit fc74688Copy full SHA for fc74688
.github/workflows/publish.yml
@@ -11,7 +11,7 @@ env:
11
jobs:
12
cargo-publish:
13
runs-on: ubuntu-latest
14
- 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') }}
15
steps:
16
- name: Print workflow event name
17
run: echo "${{ github.event.workflow.name }}"
.github/workflows/release.yml
@@ -40,6 +40,7 @@ permissions:
40
# will be marked as a prerelease.
41
on:
42
pull_request:
43
+ branches: [ "main" ]
44
push:
45
tags:
46
- '**[0-9]+.[0-9]+.[0-9]+*'
0 commit comments