Skip to content

Commit

Permalink
feat: mirror and trigger from github
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Dec 18, 2023
1 parent 051ddac commit b901ffb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Mirror and Trigger EICweb

on:
pull_request:
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/physics_benchmarks.git/
token: ${{ secrets.GITLAB_TOKEN }}
username: ${{ secrets.GITLAB_USERNAME }}
ciskip: true
- name: Trigger EICweb
uses: eic/trigger-gitlab-ci@v2
with:
url: https://eicweb.phy.anl.gov
project_id: 400
token: ${{ secrets.EICWEB_PHYSICS_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 }}

0 comments on commit b901ffb

Please sign in to comment.