-
Notifications
You must be signed in to change notification settings - Fork 22
53 lines (48 loc) · 1.43 KB
/
validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Validation
on:
pull_request:
push:
branches: [ development ]
tags: [ '*' ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
get_gemc_tag:
runs-on: ubuntu-latest
name: Get highest GEMC tag
outputs:
tag: ${{ steps.tag.outputs.tag }}
steps:
- name: checkout clas12-validation
uses: actions/checkout@v4
with:
repository: JeffersonLab/clas12-validation
ref: main
path: clas12-validation
- name: checkout clas12Tags
uses: actions/checkout@v4
with:
repository: gemc/clas12Tags
ref: main
clean: false
fetch-tags: true
fetch-depth: 0
path: clas12Tags
- name: get highest tag
id: tag
working-directory: clas12Tags
run: |
tag=$(../clas12-validation/bin/get_highest_tag.rb)
echo "Highest \`clas12Tags` (GEMC) tag: \`$tag\`" >> $GITHUB_STEP_SUMMARY
echo '- using this version for `clas12-validation` workflow run' >> $GITHUB_STEP_SUMMARY
echo tag=$tag >> $GITHUB_OUTPUT
validation:
needs: [ get_gemc_tag ]
uses: JeffersonLab/clas12-validation/.github/workflows/ci.yml@main
with:
git_upstream: >-
{
"clas12Tags": { "fork": "gemc/clas12Tags", "branch": "${{ needs.get_gemc_tag.outputs.tag }}" }
}