diff --git a/.github/workflows/sync-fork-default-branch.yml b/.github/workflows/sync-fork-default-branch.yml new file mode 100644 index 00000000000000..1d213eaaf5bca3 --- /dev/null +++ b/.github/workflows/sync-fork-default-branch.yml @@ -0,0 +1,20 @@ +name: Sync Fork's Default Branch + +permissions: + contents: write + +on: + schedule: + - cron: "0 0 * * *" # every day at midnight UTC + +jobs: + sync-fork: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Sync Repo + run: gh repo sync github/ruby