astro-ghostcms/.github/workflows/gitlab-sync.yml

23 lines
676 B
YAML
Raw Normal View History

2024-02-14 13:17:01 +00:00
name: "Sync: GitHub => GitLab"
2024-02-14 08:19:28 +00:00
on:
- push
- delete
jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
2024-02-14 18:47:25 +00:00
- uses: actions/checkout@v4
2024-02-14 08:19:28 +00:00
with:
fetch-depth: 0
2024-02-14 19:44:36 +00:00
- uses: jauderho/git-repo-sync@63782025e80e84c48b25a1ee6bb9a22a3bd570d3
2024-02-14 08:19:28 +00:00
with:
# Such as https://github.com/wangchucheng/git-repo-sync.git
target-url: ${{ secrets.GITLAB_URL }}
# Such as wangchucheng
target-username: ${{ secrets.GITLAB_USERNAME }}
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }}
2024-02-14 18:47:25 +00:00
target-token: ${{ secrets.GITLAB_ACCESS }}