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.
This commit is contained in:
2025-04-11 19:31:27 +02:00
parent 448be91197
commit a6c6e77a4b
2 changed files with 20 additions and 36 deletions
+20
View File
@@ -0,0 +1,20 @@
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