From 399cfd846b891c932174c2ef5355c6106a93f4b6 Mon Sep 17 00:00:00 2001 From: Tony Busa <70979397+tonybusa@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:46:13 -0700 Subject: [PATCH 1/2] Create sync-upstream.yml --- .github/workflows/sync-upstream.yml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/sync-upstream.yml diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml new file mode 100644 index 000000000000..7da467a88e04 --- /dev/null +++ b/.github/workflows/sync-upstream.yml @@ -0,0 +1,39 @@ +name: Sync Fork + +on: + schedule: + - cron: '0 2 * * *' # runs every day at 2:00 AM UTC + workflow_dispatch: # allows manual triggering from the GitHub UI + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout target repo + uses: actions/checkout@v4 + with: + # your fork's branch to sync + ref: master + # token to allow pushing back to your fork + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Sync upstream changes + id: sync + uses: aormsby/Fork-Sync-With-Upstream-action@v3.4.1 + with: + target_sync_branch: master + target_repo_token: ${{ secrets.GITHUB_TOKEN }} + # The owner/repo of the upstream repository + upstream_sync_repo: openedx/edx-platform + upstream_sync_branch: master + + - name: New commits found + if: steps.sync.outputs.has_new_commits == 'true' + run: echo "New commits were found and synced." + + - name: No new commits + if: steps.sync.outputs.has_new_commits == 'false' + run: echo "There were no new commits." + + - name: Show value of 'has_new_commits' + run: echo ${{ steps.sync.outputs.has_new_commits }} From ccae6ce88a15fee29d7e6adfae1a28c2e053be56 Mon Sep 17 00:00:00 2001 From: Tony Busa Date: Mon, 15 Dec 2025 15:39:23 -0700 Subject: [PATCH 2/2] build: change time of chron job --- .github/workflows/sync-upstream.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml index 7da467a88e04..90f9a3aacef4 100644 --- a/.github/workflows/sync-upstream.yml +++ b/.github/workflows/sync-upstream.yml @@ -2,7 +2,7 @@ name: Sync Fork on: schedule: - - cron: '0 2 * * *' # runs every day at 2:00 AM UTC + - cron: '0 13 * * *' # runs every day at 6am MST (1pm UTC)` workflow_dispatch: # allows manual triggering from the GitHub UI jobs: