Skip to content

Commit

Permalink
Merge pull request RocketChat#326 from shubhsherl/auto_pr
Browse files Browse the repository at this point in the history
Add catchup workflow to create PR automatically
  • Loading branch information
ear-dev committed Jul 7, 2020
2 parents 8ec22c8 + 80520a7 commit bc6b0a5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/auto_catchup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Upstream catchup from Rocketchat develop

on:
schedule:
- cron: '0 0 * * 1' #on every Monday

jobs:
catchup:
name: Upstream Catchup
runs-on: ubuntu-latest

steps:

- name: Catchup Info
run: |
echo "GITHUB_ACTION: $GITHUB_ACTION"
echo "GITHUB_ACTOR: $GITHUB_ACTOR"
echo "GITHUB_REF: $GITHUB_REF"
echo "github.event_name: ${{ github.event_name }}"
cat $GITHUB_EVENT_PATH
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Create Catchup PR
uses: shubhsherl/create-catchup-pr@v0.1.0
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SOURCE_BRANCH: "master"
SOURCE_REPO: "RocketChat"
TARGET_BRANCH: "develop_pwa"
GITHUB_REPO: ${{github.repository}}
TITLE: "[Upstream Catchup] Merge RC:master to develop_pwa"
BODY: "Weekly Catchup PR to merge RC:master in develop_pwa."
DRAFT: "true"

0 comments on commit bc6b0a5

Please sign in to comment.