32 lines
711 B
YAML
32 lines
711 B
YAML
variables:
|
|
script:
|
|
description: "Which script to run?"
|
|
value: ""
|
|
options:
|
|
- ""
|
|
- "CreateRepos"
|
|
|
|
ProjectName:
|
|
description: "Name of the Project (For CreateRepos)"
|
|
value: ""
|
|
|
|
GITLAB_TOKEN:
|
|
description: "Gitlab Token"
|
|
value: "$GitlabToken"
|
|
|
|
GITHUB_TOKEN:
|
|
description: "Github token"
|
|
value: "$GithubToken"
|
|
|
|
GITEA_TOKEN:
|
|
description: "Gitea Token"
|
|
value: "$GiteaToken"
|
|
|
|
CreateRepos:
|
|
image: mcr.microsoft.com/powershell:latest
|
|
script:
|
|
- pwsh -f ./scripts/gitlab-mirror.ps1 -ProjectName $ProjectName -GITLAB_TOKEN $GITLAB_TOKEN -GITHUB_TOKEN $GITHUB_TOKEN -GITEA_TOKEN $GITEA_TOKEN
|
|
rules:
|
|
- if: $script == "CreateRepos"
|
|
- when: never
|