forked from RocketChat/Rocket.Chat
-
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.
Merge pull request RocketChat#326 from shubhsherl/auto_pr
Add catchup workflow to create PR automatically
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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,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" |