home-assistant-newt-addon/.github/workflows/sync-to-forgejo.yml
Jørgen Ferdinand 9234f753e3
Some checks are pending
Post Changelog to Discord / post_to_discord (push) Waiting to run
Sync to Forgejo / mirror (push) Waiting to run
Update sync-to-forgejo.yml
2025-07-12 15:41:35 +02:00

26 lines
660 B
YAML

name: Sync to Forgejo
on:
push:
branches:
- main
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # Henter hele repoet, ikke bare siste commit
- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Push to Forgejo
run: |
git remote add forgejo https://Ferdinand99:${{ secrets.FORGEJO_TOKEN }}@git.opland.net/Ferdinand99/home-assistant-newt-addon.git
git push --force forgejo main