From 1a443624c98c2d65974b031a2decebda0e246a4e Mon Sep 17 00:00:00 2001 From: devanonon <160005552+devanonon@users.noreply.github.com> Date: Thu, 23 May 2024 15:16:02 +0200 Subject: [PATCH] sync fork action --- .github/workflows/sync.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..54947990f --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,26 @@ +name: Sync fork + +permissions: + contents: write + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + sync: + name: Sync fork + runs-on: ubuntu-latest + if: ${{ github.event.repository.fork }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Sync fork + run: gh repo sync ${{ github.repository }} + env: + GH_TOKEN: ${{ github.token }} + + - uses: gautamkrishnar/keepalive-workflow@v1