We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
'Release'
1 parent 8c1ffda commit 2fb25e3Copy full SHA for 2fb25e3
.github/workflows/publish.yml
@@ -1,4 +1,5 @@
1
# This is triggered after the Release workflow successfully completes its run
2
+name: Publish on crates.io
3
on:
4
workflow_run:
5
workflows:
@@ -10,8 +11,10 @@ env:
10
11
jobs:
12
cargo-publish:
13
runs-on: ubuntu-latest
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
14
+ if: ${{ (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 }}"
18
- name: Checkout sources
19
uses: actions/checkout@v4
20
- name: Install stable toolchain
0 commit comments