diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ddb938..8e00e0b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,8 @@ -stages: - - sync - variables: GIT_STRATEGY: none # Define job to clone GitHub repository -clone_source: - stage: sync +clone_source_daily: # Use an appropriate GitLab runner image image: alpine/git script: @@ -14,5 +10,5 @@ clone_source: - git clone https://th-schwarz:$GITHUB_PERSONAL_ACCESS_TOKEN@github.com/th-schwarz/CloudflareDNS-java.git synced-repo - echo "Repository cloned successfully from GitHub." rules: - - cron: "*/daily" + - if: $CI_PIPELINE_SOURCE == "schedule"