Create sync-to-forgejo.yml
This commit is contained in:
parent
89109c7bc5
commit
1e52772a49
1 changed files with 22 additions and 0 deletions
22
.github/workflows/sync-to-forgejo.yml
vendored
Normal file
22
.github/workflows/sync-to-forgejo.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue