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 2bd3528 commit 9770709Copy full SHA for 9770709
.github/workflows/release.yml
@@ -19,11 +19,26 @@ on:
19
- premajor
20
pull_request:
21
types: [closed]
22
- branches: [main]
23
24
jobs:
25
release:
26
- if: ${{github.event_name != 'pull_request' || (github.event.pull_request.merged && github.event.pull_request.user.login == 'optic-release-automation[bot]')}}
+ if: >-
+ ${{
27
+ (
28
+ startsWith(github.event.inputs.semver, 'pre') ||
29
+ github.ref == format(
30
+ 'refs/heads/{0}',
31
+ github.event.repository.default_branch
32
+ )
33
+ ) &&
34
35
+ github.event_name != 'pull_request' ||
36
37
+ github.event.pull_request.merged &&
38
+ github.event.pull_request.user.login == 'optic-release-automation[bot]'
39
40
41
+ }}
42
runs-on: ubuntu-latest
43
permissions:
44
contents: write
0 commit comments