This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
learningpulse/.forgejo/workflows/mirror_to_remote.yml
2005 ee62e8ed54
Some checks failed
Build docker images, publish them, deploy to test server / build (push) Failing after 29s
Mirror dev branch to remote / build (push) Successful in 14s
workflow: added .git to mirror and removed deploy on image building
2024-09-05 18:06:10 +02:00

22 lines
438 B
YAML

name: Mirror dev branch to remote
on:
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone bare dev branch
run: git clone --bare https://git.4o1x5.dev/${{ github.repository }} -b master
- name: Mirror to github
run: |
cd learningpulse.git && \
git push --mirror https://nezsha:${{ secrets.MIRROR_USER_PASSWORD }}@github.com/nezsha/lp.git