We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94679bf commit 5860553Copy full SHA for 5860553
1 file changed
.github/workflows/release.yml
@@ -3,13 +3,21 @@ name: Release and Publish
3
on:
4
release:
5
types: [ published ]
6
+ workflow_run:
7
+ workflows: ["Update Version"]
8
+ types: [completed]
9
+ branches: [main]
10
11
jobs:
12
update-changelog-and-publish:
13
runs-on: ubuntu-latest
14
permissions:
15
contents: write
16
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17
+ # Only run if the workflow_run was successful or if triggered by release event
18
+ if: |
19
+ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
20
+ (github.event_name == 'release')
21
22
steps:
23
- name: Checkout code
0 commit comments