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:
@@ -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
|
||||
Reference in New Issue
Block a user