From b5df064a87866de2aad382f61d5abbebaa8ae7f1 Mon Sep 17 00:00:00 2001 From: Francine Lucca <40550942+francinelucca@users.noreply.github.com> Date: Wed, 25 Jan 2023 13:42:41 -0500 Subject: [PATCH 1/4] Create sync-platform-branch --- .github/workflows/sync-platform-branch | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/sync-platform-branch diff --git a/.github/workflows/sync-platform-branch b/.github/workflows/sync-platform-branch new file mode 100644 index 00000000000..256e0f61c9d --- /dev/null +++ b/.github/workflows/sync-platform-branch @@ -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@v2 + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: 12 + - 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"]' From 4f61ad993bb483e036a54e4410c0ea79ff63f322 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 27 Jan 2023 07:59:23 -0600 Subject: [PATCH 2/4] Update .github/workflows/sync-platform-branch --- .github/workflows/sync-platform-branch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-platform-branch b/.github/workflows/sync-platform-branch index 256e0f61c9d..427ec37caa0 100644 --- a/.github/workflows/sync-platform-branch +++ b/.github/workflows/sync-platform-branch @@ -21,7 +21,7 @@ jobs: name: Syncing branches steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Node uses: actions/setup-node@v1 with: From 11a86ffba4971de5d436d50a13cd3941ba165d6c Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 27 Jan 2023 07:59:28 -0600 Subject: [PATCH 3/4] Update .github/workflows/sync-platform-branch --- .github/workflows/sync-platform-branch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-platform-branch b/.github/workflows/sync-platform-branch index 427ec37caa0..be4133d1ba3 100644 --- a/.github/workflows/sync-platform-branch +++ b/.github/workflows/sync-platform-branch @@ -23,7 +23,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Set up Node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 12 - name: Opening pull request From 8f5ced6a4536f880d0303cb348cbdc54612d3648 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 27 Jan 2023 07:59:32 -0600 Subject: [PATCH 4/4] Update .github/workflows/sync-platform-branch --- .github/workflows/sync-platform-branch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-platform-branch b/.github/workflows/sync-platform-branch index be4133d1ba3..534ad3d272d 100644 --- a/.github/workflows/sync-platform-branch +++ b/.github/workflows/sync-platform-branch @@ -25,7 +25,7 @@ jobs: - name: Set up Node uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 16 - name: Opening pull request id: pull uses: tretuna/sync-branches@1.4.0