forked from timescale/timescaledb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow for automated backporting
1. Find the latest release branch 1. For each commit in main and not in release branch (compared by title), find the corresponding PR. 1. If the PR fixes an issue labeled "bug", and neither the PR nor the issue are labeled "no-backport", cherry-pick the commits from the PR onto the release branch, and create a PR with these changes.
- Loading branch information
Showing
5 changed files
with
425 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Backport Bug Fixes | ||
on: | ||
schedule: | ||
# Run weekdays 12:00 on main branch, so that it doesn't wreak havoc on | ||
# weekends. | ||
- cron: '0 12 * * 1-5' | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
# You can run and debug new versions of the backport script by pushing it | ||
# to this branch. workflow_dispatch can only be run through github cli for | ||
# branches that are not main, so it's inconvenient. | ||
- backport/trigger | ||
|
||
jobs: | ||
backport: | ||
name: Backport Bug Fixes | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Linux Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install pip | ||
- name: Install Python Dependencies | ||
run: | | ||
pip install PyGithub requests | ||
- name: Checkout TimescaleDB | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run the Backport Script | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }} | ||
run: | | ||
git remote --verbose | ||
scripts/backport.py |
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
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
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
Oops, something went wrong.