From 1e52772a4934917a7994df9ad1474ef5a46f16fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Ferdinand?= <32671211+Ferdinand99@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:56:43 +0200 Subject: [PATCH] Create sync-to-forgejo.yml --- .github/workflows/sync-to-forgejo.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sync-to-forgejo.yml diff --git a/.github/workflows/sync-to-forgejo.yml b/.github/workflows/sync-to-forgejo.yml new file mode 100644 index 0000000..4f28a5d --- /dev/null +++ b/.github/workflows/sync-to-forgejo.yml @@ -0,0 +1,22 @@ +name: Sync to Forgejo + +on: + push: + branches: + - main + +jobs: + mirror: + runs-on: ubuntu-latest + + steps: + - name: Checkout GitHub repo + uses: actions/checkout@v3 + + - name: Push to Forgejo + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + + git remote add forgejo https://Ferdinand99:${{ secrets.FORGEJO_TOKEN }}@git.opland.net/Ferdinand99/home-assistant-newt-addon.git + git push forgejo main