mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
## Problem It's not a trivial task to find corresponding changes for a particular release (for example, for 3371 — 🤷) Ref: https://neondb.slack.com/archives/C04BLQ4LW7K/p1686761537607649?thread_ts=1686736854.174559&cid=C04BLQ4LW7K ## Summary of changes - Tag releases - Add a manual trigger for the release workflow
35 lines
891 B
YAML
35 lines
891 B
YAML
name: Create Release Branch
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 10 * * 2'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
create_release_branch:
|
|
runs-on: [ubuntu-latest]
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
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
|
|
uses: thomaseizinger/create-pull-request@e3972219c86a56550fb70708d96800d8e24ba862 # 1.3.0
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
head: releases/${{ steps.date.outputs.date }}
|
|
base: release
|
|
title: Release ${{ steps.date.outputs.date }}
|