mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-13 16:32:56 +00:00
Prepare for a new release workflow * Release PR is created on Fridays * The discussion/approval happens during Friday * Sunday morning the deployment will be done in central-il and perf tests will be run * On Monday early IST morning gradually start rolling (starting from US regions as they are still in weekend time) See slack for discussion: https://neondb.slack.com/archives/C04P81J55LK/p1698565305607839?thread_ts=1698428241.031979&cid=C04P81J55LK
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Create Release Branch
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 7 * * 5'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
create_release_branch:
|
|
runs-on: [ ubuntu-latest ]
|
|
|
|
permissions:
|
|
contents: write # for `git push`
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: main
|
|
|
|
- name: Get current date
|
|
id: date
|
|
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create release branch
|
|
run: git checkout -b releases/${{ steps.date.outputs.date }}
|
|
|
|
- name: Push new branch
|
|
run: git push origin releases/${{ steps.date.outputs.date }}
|
|
|
|
- name: Create pull request into release
|
|
env:
|
|
GH_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }}
|
|
run: |
|
|
cat << EOF > body.md
|
|
## Release ${{ steps.date.outputs.date }}
|
|
|
|
**Please merge this PR using 'Create a merge commit'!**
|
|
EOF
|
|
|
|
gh pr create --title "Release ${{ steps.date.outputs.date }}" \
|
|
--body-file "body.md" \
|
|
--head "releases/${{ steps.date.outputs.date }}" \
|
|
--base "release"
|