-
Notifications
You must be signed in to change notification settings - Fork 68
34 lines (31 loc) · 1.05 KB
/
release-entry.yml
File metadata and controls
34 lines (31 loc) · 1.05 KB
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
# This workflow delegates to the appropriate release workflow based on the event that triggered it.
name: release-entry
on:
# Triggers for official releases
release:
types: [published]
# Triggers for canary releases
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
inputs:
canary-release:
description: 'Canary release'
type: choice
required: false
default: 'With Tests and Checks'
options:
- 'With Tests and Checks'
- 'Skip Tests and Checks (Force Release)'
jobs:
delegate_to_release_job:
if: ${{ github.event_name == 'release' }}
uses: ./.github/workflows/release.yml
secrets: inherit
delegate_to_canary_job:
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/build.yml
secrets: inherit
with:
canary-release-skip-checks: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.canary-release == 'Skip Tests and Checks (Force Release)' }}
is-workflow-call: true