Skip to content

Commit a504e9e

Browse files
committed
feat(ci): trigger orca
Trigger pipelines in the [new `orca` repo (`clas12-validation` upgrade)](https://code.jlab.org/hallb/clas12/orca).
1 parent 27b6c1d commit a504e9e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎.github/workflows/orca.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: orca
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ development ]
7+
tags: [ '*' ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
trigger_orca:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: trigger orca pipeline
22+
run: |
23+
curl -X POST \
24+
-F "token=${{ secrets.ORCA_TOKEN }}" \
25+
-F "ref=main" \
26+
-F "variables[TRIGGERED_BY]=github" \
27+
-F "variables[GITHUB_REPO]=${{ github.repository }}" \
28+
-F "variables[GITHUB_SHA]=${{ github.sha }}" \
29+
-F "variables[GITHUB_RUN_ID]=${{ github.run_id }}" \
30+
-F "variables[REF_COATJAVA]=${{ github.head_ref || github.ref_name }}" \
31+
"https://code.jlab.org/api/v4/projects/${{ secrets.ORCA_PROJECT_ID }}/trigger/pipeline"

0 commit comments

Comments
 (0)