Backport Bug Fixes #1784
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
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: | |
# This is also triggered from backport-trigger.yaml when the release branches | |
# are updated. | |
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 | |
# The workflow needs the permission to push branches | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: write | |
actions: write | |
statuses: write | |
jobs: | |
backport: | |
name: Backport Bug Fixes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Python Dependencies | |
run: | | |
pip install PyGithub requests | |
- name: Checkout TimescaleDB | |
uses: actions/checkout@v4 | |
- name: Run the Backport Script | |
env: | |
GITHUB_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }} | |
run: | | |
git remote --verbose | |
scripts/backport.py 2>&1 | |
git remote --verbose |