From 22ff8d105a876beec3534a64dde4eb4da20e157f Mon Sep 17 00:00:00 2001 From: -akku- <151517253+akku1139@users.noreply.github.com> Date: Fri, 13 Dec 2024 00:37:28 +0900 Subject: [PATCH] Create sync.yml --- .github/workflows/sync.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 000000000..3a8e78714 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,31 @@ +name: Sync upstream branch + +on: + schedule: + - cron: '14 6 * * *' + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: "sync" + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: upstream + + - name: Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git remote add up https://github.com/scratchfoundation/scratch-gui.git + git pull up develop + git push -u origin upstream + git push