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

25 lines
662 B
YAML
Raw Normal View History

2024-03-11 21:54:24 +00:00
name: "Sync to GitLab"
2024-03-11 13:13:54 +00:00
on:
- push
- delete
2024-03-11 21:54:24 +00:00
permissions: read-all
2024-03-11 13:13:54 +00:00
jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
2024-03-11 22:15:15 +00:00
- uses: MatthiesenXYZ/git-sync-action@v1.1
2024-03-11 13:13:54 +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-03-11 21:52:44 +00:00
target-token: ${{ secrets.GITLAB_ACCESS }}