a6c6e77a4b
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.
21 lines
614 B
YAML
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
|