39b72e5ba8
Reorganized the cloning logic into a dedicated pull stage and updated the cloning script for efficiency. Replaced `rules` with `only` to clarify job triggers and added the `GITLAB_CLONE_DIR` variable for better repository management.
15 lines
357 B
YAML
15 lines
357 B
YAML
stages:
|
|
- pull
|
|
|
|
variables:
|
|
GITLAB_CLONE_DIR: "cloudflaredns-java"
|
|
|
|
pull_source:
|
|
stage: pull
|
|
script:
|
|
- echo "Cloning GitHub repository..."
|
|
- git clone --depth 1 https://oauth2:${GITHUB_PERSONAL_ACCESS_TOKEN}@github.com/th-schwarz/CloudflareDNS-java.git ${GITLAB_CLONE_DIR}
|
|
- echo "Repository cloned successfully."
|
|
only:
|
|
- schedules
|