-
Notifications
You must be signed in to change notification settings - Fork 891
43 lines (37 loc) · 1.23 KB
/
backport.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Backport Bug Fixes
on:
schedule:
# Run weekdays 12:00 on main branch, so that it doesn't wreak havoc on
# weekends. Good to have regular runs so that we can react to changes in
# issue tags, or retry some spurious network errors, or whatever.
- cron: '0 12 * * 1-5'
workflow_dispatch:
push:
branches:
# Ideally we want to create a backport PR as soon as the fix is merged
# into the main branch
- main
# 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