23 lines
470 B
YAML
23 lines
470 B
YAML
name: Mirror to GitLab
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
mirror:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Mirror to GitLab
|
|
env:
|
|
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
|
|
run: |
|
|
git remote add gitlab https://oauth2:${GITLAB_TOKEN}@gitlab.com/mrhavens/fieldprint.git
|
|
git push --mirror gitlab
|