Skip to content

Commit

Permalink
Merge pull request #3 from correaa/gitlabsync
Browse files Browse the repository at this point in the history
use secrets
  • Loading branch information
correaa authored Apr 20, 2024
2 parents e750f89 + 52ca12f commit 66f1e7f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches: [ "master" ]

env:
BUILD_TYPE: Debug
BUILD_TYPE: Release

jobs:
latest-cpp:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: GitlabSync # https://dev.to/brunorobert/github-and-gitlab-sync-44mn

on:
- push
- delete

jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wangchucheng/git-repo-sync@v0.1.0
with:
# Such as https://github.com/wangchucheng/git-repo-sync.git
target-url: ${{ secrets.TARGET_URL }}
# Such as wangchucheng
target-username: ${{ secrets.TARGET_USERNAME }}
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }}
target-token: ${{ secrets.TARGET_TOKEN }}

0 comments on commit 66f1e7f

Please sign in to comment.