File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,42 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15+
16+ get_gemc_tag :
17+ runs-on : ubuntu-latest
18+ name : Get highest GEMC tag
19+ outputs :
20+ tag : ${{ steps.tag.outputs.tag }}
21+ steps :
22+ - name : checkout clas12-validation
23+ uses : actions/checkout@v4
24+ with :
25+ repository : JeffersonLab/clas12-validation
26+ ref : main
27+ path : clas12-validation
28+ - name : checkout clas12Tags
29+ uses : actions/checkout@v4
30+ with :
31+ repository : gemc/clas12Tags
32+ ref : main
33+ clean : false
34+ fetch-tags : true
35+ fetch-depth : 0
36+ path : clas12Tags
37+ - name : get highest tag
38+ id : tag
39+ working-directory : clas12Tags
40+ run : |
41+ tag=$(../clas12-validation/bin/get_highest_tag.rb)
42+ echo "Highest \`clas12Tags\` (GEMC) tag: \`$tag\`" >> $GITHUB_STEP_SUMMARY
43+ echo '- using this version for `clas12-validation` workflow run' >> $GITHUB_STEP_SUMMARY
44+ echo tag=$tag >> $GITHUB_OUTPUT
45+
1546 validation :
47+ needs : [ get_gemc_tag ]
1648 uses : JeffersonLab/clas12-validation/.github/workflows/ci.yml@main
1749 with :
1850 git_upstream : >-
1951 {
20- "clas12Tags": { "fork": "gemc/clas12Tags", "branch": "8f9956678b44386d3df85d8d8df9d5002333a82b " }
52+ "clas12Tags": { "fork": "gemc/clas12Tags", "branch": "${{ needs.get_gemc_tag.outputs.tag }} " }
2153 }
You can’t perform that action at this time.
0 commit comments