File tree Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Expand file tree Collapse file tree 2 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 27
27
&& github.ref_name == github.event.repository.default_branch || (startsWith(github.ref_name, 'v') && endsWith(github.ref_name, '.x.x')))
28
28
with :
29
29
security-updates-only : true
30
-
31
- snapshot :
32
- uses : ./.github/workflows/release.yml
33
- needs : build
34
- secrets : inherit
35
- if : |
36
- needs.build.result == 'success'
37
- && github.event_name == 'push'
38
- && (github.ref_name == github.event.repository.default_branch || (startsWith(github.ref_name, 'v') && endsWith(github.ref_name, '.x.x')))
39
- && needs.release.outputs.released == false
40
- with :
41
- snapshot : true
30
+ consider-snapshot : true
Original file line number Diff line number Diff line change 8
8
type : boolean
9
9
required : false
10
10
default : false
11
+ consider-snapshot :
12
+ description : " Consider snapshot"
13
+ type : boolean
14
+ required : false
15
+ default : false
11
16
# Called from build
12
17
workflow_call :
13
- output :
14
- result :
15
- type : string
16
- description : ' Release result '
17
- value : ${{ jobs.check.outputs.release == 'true' && jobs.release.result || 'skipped' }}
18
- released :
18
+ inputs :
19
+ security-updates-only :
20
+ type : boolean
21
+ required : false
22
+ default : false
23
+ consider-snapshot :
19
24
type : boolean
20
- description : ' Released '
21
- value : ${{ jobs.check.outputs.release == 'true' && jobs.release.result == 'success' }}
25
+ required : false
26
+ default : false
22
27
schedule :
23
28
# at 5:30 UTC every other month
24
29
- cron : " 30 5 1 */2 *"
34
39
release :
35
40
uses : ./.github/workflows/release.yml
36
41
secrets : inherit
42
+ needs : check
37
43
if : needs.check.outputs.release == 'true'
44
+
45
+ snapshot :
46
+ uses : ./.github/workflows/release.yml
38
47
needs : check
48
+ secrets : inherit
49
+ if : |
50
+ inputs.consider-snapshot
51
+ && needs.check.outputs.release != 'true'
52
+ && needs.check.outputs.skip-code != 'no-changes'
53
+ with :
54
+ snapshot : true
55
+
You can’t perform that action at this time.
0 commit comments