Skip to content

Commit ca5a83c

Browse files
authored
fix: run validation pipelines using latest clas12Tags semver tag (JeffersonLab#170)
* fix: run validation pipelines using latest `clas12Tags` semver tag * fix: escape backtick
1 parent 5b17b71 commit ca5a83c

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/validation.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,42 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
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
}

0 commit comments

Comments
 (0)