-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.16 KB
/
release-auto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release Auto
on:
workflow_dispatch:
inputs:
security-updates-only:
description: "Security updates only"
type: boolean
required: false
default: false
consider-snapshot:
description: "Consider snapshot"
type: boolean
required: false
default: false
workflow_run:
workflows: [ "Build" ]
types: [ completed ]
branches:
- main
- v*x.x
schedule:
# at 5:30 UTC every other month
- cron: "30 5 1 */2 *"
jobs:
check:
uses: coditory/workflows/.github/workflows/release-auto-check.yml@v1
secrets: inherit
with:
security-updates-only: ${{ inputs.security-updates-only || github.event_name == 'workflow_run' }}
release:
uses: ./.github/workflows/release.yml
secrets: inherit
needs: check
if: needs.check.outputs.release == 'true'
snapshot:
uses: ./.github/workflows/release.yml
needs: check
secrets: inherit
if: |
(inputs.consider-snapshot || github.event_name == 'workflow_run')
&& needs.check.outputs.release != 'true'
&& needs.check.outputs.skip-code != 'no-changes'
with:
snapshot: true