-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create sync-platform-branch action (#3365)
* 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
1 parent
6dbaf7e
commit 4c7f162
Showing
1 changed file
with
38 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,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"]' |
4c7f162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
carbondesignsystem – ./
carbondesignsystem-carbon-design-system.vercel.app
carbondesignsystem-git-main-carbon-design-system.vercel.app
carbondesignsystem.vercel.app