From 3d6dbea16d7644607d6cf92397215ace098e8c9e Mon Sep 17 00:00:00 2001 From: Orion C Date: Tue, 24 Sep 2024 10:59:47 +0200 Subject: [PATCH] Add action to push changes to the brgm --- .github/workflows/brgm.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/brgm.yml diff --git a/.github/workflows/brgm.yml b/.github/workflows/brgm.yml new file mode 100644 index 0000000000..f57f6c3148 --- /dev/null +++ b/.github/workflows/brgm.yml @@ -0,0 +1,24 @@ +name: Push to the BRGM GitLab repository + +on: + schedule: + - cron: '0 2 * * *' # Run every day at 2 AM + workflow_dispatch: # Allow manual trigger + +jobs: + push-to-gitlab: + runs-on: ubuntu-latest + + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Set up Git + run: | + git config --global user.name "TD GH Action" + git config --global user.email "action@github.com" + + - name: Add remote & push + run: | + git remote add brgm ${{ secrets.BRGM_GITLAB_URL }} + git push brgm --all