mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 12:32:54 +00:00
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: Create Release Branch
|
|
|
|
on:
|
|
schedule:
|
|
# It should be kept in sync with if-condition in jobs
|
|
- cron: '0 6 * * TUE' # Proxy release
|
|
- cron: '0 6 * * FRI' # Storage release
|
|
- cron: '0 7 * * FRI' # Compute 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'
|
|
source-branch: ${{ github.ref_name }}
|
|
secrets:
|
|
ci-access-token: ${{ secrets.CI_ACCESS_TOKEN }}
|
|
|
|
create-proxy-release-branch:
|
|
if: ${{ github.event.schedule == '0 6 * * TUE' || inputs.create-proxy-release-branch }}
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
uses: ./.github/workflows/_create-release-pr.yml
|
|
with:
|
|
component-name: 'Proxy'
|
|
source-branch: ${{ github.ref_name }}
|
|
secrets:
|
|
ci-access-token: ${{ secrets.CI_ACCESS_TOKEN }}
|
|
|
|
create-compute-release-branch:
|
|
if: ${{ github.event.schedule == '0 7 * * FRI' || inputs.create-compute-release-branch }}
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
uses: ./.github/workflows/_create-release-pr.yml
|
|
with:
|
|
component-name: 'Compute'
|
|
source-branch: ${{ github.ref_name }}
|
|
secrets:
|
|
ci-access-token: ${{ secrets.CI_ACCESS_TOKEN }}
|