Skip to content

Commit

Permalink
distinct job
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlevy committed Jan 20, 2025
1 parent ee3ee68 commit 36261c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ jobs:
with:
target-url: https://gitlab.com/osuny/admin.git
target-username: ${{ secrets.GITLAB_TARGET_USERNAME }}
target-token: ${{ secrets.GITLAB_TARGET_TOKEN }}
- uses: wangchucheng/git-repo-sync@v0.1.0
with:
target-url: https://forge.naos-cluster.tech/osuny/admin.git
target-username: ${{ secrets.GITLAB_NAOS_USERNAME }}
target-token: ${{ secrets.GITLAB_NAOS_TOKEN }}
target-token: ${{ secrets.GITLAB_TARGET_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/naos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: GitlabSync

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:
target-url: https://forge.naos-cluster.tech/osuny/admin.git
target-username: ${{ secrets.GITLAB_NAOS_USERNAME }}
target-token: ${{ secrets.GITLAB_NAOS_TOKEN }}

0 comments on commit 36261c6

Please sign in to comment.