Skip to content

Commit b5a67b6

Browse files
authored
Add GitHub Actions workflow to sync with GitLab
1 parent 8db3832 commit b5a67b6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync to GitLab
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
sync:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Push to GitLab mirror
19+
run: |
20+
git push --all https://gitlab-ci-token:${{ secrets.GITLAB_TOKEN }}@gitlab.com/Refloow/Steam-Auto-Friend.git
21+
git push --tags https://gitlab-ci-token:${{ secrets.GITLAB_TOKEN }}@gitlab.com/Refloow/Steam-Auto-Friend.git

0 commit comments

Comments
 (0)