Skip to content

Commit

Permalink
Update mirror.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Sep 9, 2024
1 parent ce6a068 commit b8b6c0b
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,30 @@ jobs:
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: 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.GITHUB_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 }}/commits/${{ github.event.pull_request.head.sha || github.sha }}/statuses"
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.sha }}"

0 comments on commit b8b6c0b

Please sign in to comment.