Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Backport upstream changes (Cronjob) #339

Backport upstream changes (Cronjob)

Backport upstream changes (Cronjob) #339

name: Backport upstream changes (Cronjob)
on:
# Triggers the workflow at 9:00 on Tuesday and Thursday.
schedule:
- cron: "0 9 * * 2,4"
# Allow running backports manually
workflow_dispatch:
defaults:
run:
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
shell: bash --noprofile --norc -eo pipefail -x {0}
permissions:
contents: write
actions: write
pull-requests: write
jobs:
push-commits-to-koor-repo:
name: Push commits to Koor Repository
runs-on: ubuntu-latest
if: github.repository == 'koor-tech/koor'
steps:
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Configure git user
run: |
git config --global user.name "Koor Bot"
git config --global user.email "[email protected]"
- name: pull rook upstream commits from latest master and create a PR
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
./ee/scripts/backport_upstream_ci.sh
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}