ci: add bidirectional sync with Forgejo
This commit is contained in:
parent
b8de85a4f9
commit
f925d39e74
1 changed files with 21 additions and 0 deletions
21
.github/workflows/mirror-to-forgejo.yml
vendored
Normal file
21
.github/workflows/mirror-to-forgejo.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Mirror to Forgejo
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
tags: ["**"]
|
||||
delete:
|
||||
|
||||
jobs:
|
||||
mirror:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Push to Forgejo
|
||||
run: |
|
||||
git remote add forgejo https://loke:${{ secrets.FORGEJO_TOKEN }}@git.lorenzoiovino.com/loke/ng2-fittext.git
|
||||
git push forgejo --all --force
|
||||
git push forgejo --tags --force
|
||||
Loading…
Add table
Add a link
Reference in a new issue