mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
## Problem We practice a manual release flow for the compute module. This will allow automation of the compute release process. ## Summary of changes The workflow was modified to make a compute release automatically on the branch release-compute. ## Checklist before requesting a review - [x] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. ## Checklist before merging - [ ] Do not forget to reformat commit message to not include the above checklist
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
name: Create Release Branch
|
|
|
|
on:
|
|
schedule:
|
|
# It should be kept in sync with if-condition in jobs
|
|
- cron: '0 6 * * MON' # 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 * * MON' || 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 }}
|