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

22 lines
454 B
YAML
Raw Normal View History

2024-09-05 17:50:27 +02:00
name: Mirror dev branch to remote
on:
push:
2024-09-05 17:51:36 +02:00
branches: ["master"]
2024-09-05 17:50:27 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone bare dev branch
2024-09-05 17:51:36 +02:00
run: git clone --bare https://git.4o1x5.dev/${{ github.repository }} -b master
2024-09-05 17:50:27 +02:00
- name: Cd into directory
2024-09-05 17:59:43 +02:00
run: cd learningpulse.git
2024-09-05 17:50:27 +02:00
- name: Mirror to github
run: git push --mirror https://nezsha:${{ secrets.MIRROR_USER_PASSWORD }}@github.com/nezsha/lp