Files
CloudflareDNS-java/.github/workflows/clone-gitlab.yml
T
thischwa a6c6e77a4b Replace build workflow with daily GitLab repository clone.
Removed the build-and-test.yml GitHub Actions workflow, including Maven build and Sonar integration. Introduced a new workflow to clone a GitLab repository daily using a scheduled cron job.
2025-04-11 19:31:27 +02:00

21 lines
614 B
YAML

name: Clone GitLab Repository Daily
# Schedule the workflow to run daily at midnight
on:
schedule:
- cron: '0 0 * * *' # Adjust the cron schedule as required (UTC)
jobs:
clone-gitlab-repo:
name: Clone GitLab Repository
runs-on: ubuntu-latest
steps:
- name: Clone GitLab repository
env:
# Set the GitLab access token in GitHub secrets as `GITLAB_TOKEN`
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
# Authenticate using GitLab token
git clone https://gitlab-ci-token:${GITLAB_TOKEN}@thischwa/CloudflareDNS-java.git cloned-repo