Create Release Branch #192
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release Branch | |
on: | |
schedule: | |
# It should be kept in sync with if-condition in jobs | |
- cron: '0 6 * * FRI' # Storage release | |
- cron: '0 6 * * THU' # Proxy release | |
workflow_dispatch: | |
inputs: | |
create-storage-release-branch: | |
type: boolean | |
description: 'Create Storage release PR' | |
required: false | |
create-proxy-release-branch: | |
type: boolean | |
description: 'Create Proxy release PR' | |
required: false | |
create-compute-release-branch: | |
type: boolean | |
description: 'Create Compute release PR' | |
required: false | |
# No permission for GITHUB_TOKEN by default; the **minimal required** set of permissions should be granted in each job. | |
permissions: {} | |
defaults: | |
run: | |
shell: bash -euo pipefail {0} | |
jobs: | |
create-storage-release-branch: | |
if: ${{ github.event.schedule == '0 6 * * FRI' || inputs.create-storage-release-branch }} | |
permissions: | |
contents: write | |
uses: ./.github/workflows/_create-release-pr.yml | |
with: | |
component-name: 'Storage' | |
release-branch: 'release' | |
secrets: | |
ci-access-token: ${{ secrets.CI_ACCESS_TOKEN }} | |
create-proxy-release-branch: | |
if: ${{ github.event.schedule == '0 6 * * THU' || inputs.create-proxy-release-branch }} | |
permissions: | |
contents: write | |
uses: ./.github/workflows/_create-release-pr.yml | |
with: | |
component-name: 'Proxy' | |
release-branch: 'release-proxy' | |
secrets: | |
ci-access-token: ${{ secrets.CI_ACCESS_TOKEN }} | |
create-compute-release-branch: | |
if: inputs.create-compute-release-branch | |
permissions: | |
contents: write | |
uses: ./.github/workflows/_create-release-pr.yml | |
with: | |
component-name: 'Compute' | |
release-branch: 'release-compute' | |
secrets: | |
ci-access-token: ${{ secrets.CI_ACCESS_TOKEN }} |