From bedb25f58b4e253254cb73f0550120069e238ccc Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Wed, 10 Jul 2024 13:41:26 -0500 Subject: [PATCH 1/2] fix: harmonize mirroring with detector_benchmarks --- .github/workflows/mirror.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml index e75d47c3..d4c39d5f 100644 --- a/.github/workflows/mirror.yaml +++ b/.github/workflows/mirror.yaml @@ -1,7 +1,7 @@ name: Mirror and Trigger EICweb on: - pull_request: + delete: push: workflow_dispatch: @@ -22,7 +22,6 @@ jobs: with: fetch-depth: 0 - name: Push to EICweb - if: github.event_name == 'push' uses: eic/gitlab-sync@master with: url: https://eicweb.phy.anl.gov/containers/eic_container.git/ @@ -30,7 +29,7 @@ jobs: username: ${{ secrets.GITLAB_USERNAME }} ciskip: true - name: Trigger EICweb - if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' + if: github.event_name != 'delete' }} uses: eic/trigger-gitlab-ci@v3 with: url: https://eicweb.phy.anl.gov From f1f6efbdffd32c8f8c24a2005b22caa7571df71c Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Wed, 10 Jul 2024 16:57:03 -0500 Subject: [PATCH 2/2] Update .github/workflows/mirror.yaml Co-authored-by: Dmitry Kalinkin --- .github/workflows/mirror.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml index d4c39d5f..65f2927b 100644 --- a/.github/workflows/mirror.yaml +++ b/.github/workflows/mirror.yaml @@ -29,7 +29,7 @@ jobs: username: ${{ secrets.GITLAB_USERNAME }} ciskip: true - name: Trigger EICweb - if: github.event_name != 'delete' }} + if: ${{ github.event_name != 'delete' }} uses: eic/trigger-gitlab-ci@v3 with: url: https://eicweb.phy.anl.gov