From e0bbc621831f06232c1be6ec85d506cd992b45e6 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Tue, 1 Apr 2025 15:47:43 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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"