-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (37 loc) · 1009 Bytes
/
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
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-check.yml@v1
secrets: inherit
if: |
github.event_name != 'workflow_run'
|| !contains(github.event.workflow_run.head_commit.message, '[ci-skip-build]')
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'