Skip to content
Snippets Groups Projects
Commit 9b803641 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

mirror.yaml: Set pending EICweb status

parent 859ab9b7
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ jobs: ...@@ -16,6 +16,7 @@ jobs:
permissions: permissions:
actions: write actions: write
contents: read contents: read
statuses: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
...@@ -29,6 +30,7 @@ jobs: ...@@ -29,6 +30,7 @@ jobs:
username: ${{ secrets.GITLAB_USERNAME }} username: ${{ secrets.GITLAB_USERNAME }}
ciskip: true ciskip: true
- name: Trigger EICweb - name: Trigger EICweb
id: trigger_eicweb
uses: eic/trigger-gitlab-ci@v3 uses: eic/trigger-gitlab-ci@v3
if: ${{ github.event_name != 'delete' }} if: ${{ github.event_name != 'delete' }}
with: with:
...@@ -41,3 +43,17 @@ jobs: ...@@ -41,3 +43,17 @@ jobs:
GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }} GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }}
GITHUB_PR=${{ github.event.pull_request.number }} GITHUB_PR=${{ github.event.pull_request.number }}
PIPELINE_NAME=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }} 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/physics_benchmarks ('"$DETECTOR_CONFIG"')", "state": "pending", "description": "Waiting for response from the EICweb", "target_url": "${{ fromJson(steps.trigger_eicweb.outputs.json).web_url }}"}' \
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.sha }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment