Skip to content

Update mirror.yaml #304

Update mirror.yaml

Update mirror.yaml #304

Workflow file for this run

name: Mirror and Trigger EICweb
on:
delete:
push:
workflow_dispatch:
concurrency:
group: mirror
cancel-in-progress: false
jobs:
build:
name: Mirror and Trigger EICweb
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: eic/gitlab-sync@master
with:
url: https://eicweb.phy.anl.gov/EIC/benchmarks/detector_benchmarks.git/
token: ${{ secrets.GITLAB_TOKEN }}
username: ${{ secrets.GITLAB_USERNAME }}
ciskip: true
# - name: Trigger EICweb
# uses: eic/trigger-gitlab-ci@v3
# if: ${{ github.event_name != 'delete' }}
# 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 }}
# PIPELINE_NAME=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }}
- name: Set pending EICweb status
if: ${{ github.event_name != 'delete' }}
env:
GITHUB_TOKEN: ${{ secrets.BACKPORT_ACTION_TOKEN }}
DETECTOR_CONFIG: epic_craterlake
run: |
curl \
--fail-with-body \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-d '{"context": "eicweb/detector_benchmarks ('"$DETECTOR_CONFIG"')", "state": "pending", "description": "Waiting for response from the EICweb"}' \
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.sha }}"