Skip to content

Commit

Permalink
Create sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akku1139 authored Dec 12, 2024
1 parent 09b48f6 commit 22ff8d1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 22ff8d1

Please sign in to comment.