diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml new file mode 100644 index 0000000000000000000000000000000000000000..51bee29b4622ccc9d9e25fcc57d32d209b3ab780 --- /dev/null +++ b/.github/workflows/mirror.yaml @@ -0,0 +1,40 @@ +name: Mirror and Trigger EICweb + +on: + pull_request: + push: + workflow_dispatch: + +concurrency: + group: mirror + cancel-in-progress: false + +jobs: + build: + name: Mirror + runs-on: ubuntu-latest + permissions: + actions: write + contents: read + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Push to EICweb + uses: action-pack/gitlab-sync@d8d7956922770fc89e45dd7f0151fdeed5aad72e + with: + url: https://eicweb.phy.anl.gov/EIC/benchmarks/detector_benchmarks.git/ + token: ${{ secrets.GITLAB_TOKEN }} + username: ${{ secrets.GITLAB_USERNAME }} + - name: Trigger EICweb + uses: eic/trigger-gitlab-ci@v2 + with: + url: https://eicweb.phy.anl.gov + project_id: 399 + token: ${{ secrets.EICWEB_DETECTOR_BENCHMARKS_TRIGGER }} + ref_name: ${{ github.event.pull_request.head.ref || github.ref }} + variables: + GITHUB_REPOSITORY=${{ github.repository }} + GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }} + GITHUB_PR=${{ github.event.pull_request.number }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 935647f17c230c0d1353ba51130e5eee00a765e2..c7edc1125ada7d80c83afd2f42820324db6d5823 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,7 @@ workflow: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "web"' - if: '$CI_PIPELINE_SOURCE == "webide"' + - if: '$CI_PIPELINE_SOURCE == "trigger"' - if: '$CI_COMMIT_BRANCH == "master"' - if: '$CI_COMMIT_TAG'