diff --git a/.github/workflows/gitlab.yml b/.github/workflows/gitlab.yml index 9ce90c6b56cbd405172a7e5b7936ec6889fda1df..e06a4e172a98c40db82878cf5c5784816d309f3e 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 0000000000000000000000000000000000000000..724c532038c9bb53afd9b8859a79bbfa3ab83474 --- /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 }}