From 36261c640f33585fde3b72be39c3e85e89339ad3 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Mon, 20 Jan 2025 12:10:11 +0100 Subject: [PATCH] distinct job --- .github/workflows/gitlab.yml | 7 +------ .github/workflows/naos.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/naos.yml diff --git a/.github/workflows/gitlab.yml b/.github/workflows/gitlab.yml index 9ce90c6b5..e06a4e172 100644 --- a/.github/workflows/gitlab.yml +++ b/.github/workflows/gitlab.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/naos.yml b/.github/workflows/naos.yml new file mode 100644 index 000000000..724c53203 --- /dev/null +++ b/.github/workflows/naos.yml @@ -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 }} -- GitLab