Skip to content

Commit

Permalink
fix: run validation pipelines using latest clas12Tags semver tag (#170
Browse files Browse the repository at this point in the history
)

* fix: run validation pipelines using latest `clas12Tags` semver tag

* fix: escape backtick
  • Loading branch information
c-dilks authored Jan 23, 2024
1 parent 5b17b71 commit ca5a83c
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,42 @@ concurrency:
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": "8f9956678b44386d3df85d8d8df9d5002333a82b" }
"clas12Tags": { "fork": "gemc/clas12Tags", "branch": "${{ needs.get_gemc_tag.outputs.tag }}" }
}

0 comments on commit ca5a83c

Please sign in to comment.