Skip to content

Commit

Permalink
Create sync-platform-branch action (#3365)
Browse files Browse the repository at this point in the history
* Create sync-platform-branch

* Update .github/workflows/sync-platform-branch

* Update .github/workflows/sync-platform-branch

* Update .github/workflows/sync-platform-branch

Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
  • Loading branch information
francinelucca and tay1orjones committed Jan 27, 2023
1 parent 6dbaf7e commit 4c7f162
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/sync-platform-branch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Sync Platform Branch
on:
schedule:
# Runs on Fridays 6:00 UTC (-6 CT, -5 EST)
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: 0 6 * * 5

# Enable running this workflow manually from the Actions tab
workflow_dispatch: # Allow for running this manually.

jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "main"
TO_BRANCH: "carbon-platform"
PULL_REQUEST_BODY: "Platform Sync, pulling in new content from main into carbon-platform branch"
CONTENT_COMPARISON: true
REVIEWERS: '["francinelucca","andreancardona","alisonjoseph"]'

1 comment on commit 4c7f162

@vercel
Copy link

@vercel vercel bot commented on 4c7f162 Jan 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.