2024-07-03 17:07:40 -04:00
|
|
|
name: "git"
|
2024-07-03 22:08:35 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["flake: update inputs"]
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
workflow_dispatch:
|
2024-07-03 17:07:40 -04:00
|
|
|
jobs:
|
|
|
|
sync-codeberg:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: check out repository
|
|
|
|
uses: actions/checkout@v4
|
2024-07-04 22:44:33 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: "sync codeberg mirror"
|
|
|
|
uses: yesolutions/mirror-action@v0.7.0
|
|
|
|
with:
|
|
|
|
REMOTE: 'https://codeberg.org/alyraffauf/nixcfg.git'
|
|
|
|
GIT_USERNAME: alyraffauf
|
|
|
|
GIT_PASSWORD: ${{ secrets.CODEBERG_PASSWORD }}
|
|
|
|
sync-gitlab:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: check out repository
|
|
|
|
uses: actions/checkout@v4
|
2024-07-04 22:44:33 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: "sync gitlab mirror"
|
|
|
|
uses: yesolutions/mirror-action@v0.7.0
|
|
|
|
with:
|
|
|
|
REMOTE: 'https://gitlab.com/alyraffauf/nixcfg.git'
|
|
|
|
GIT_USERNAME: alyraffauf
|
|
|
|
GIT_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
|