Skip to content

Commit

Permalink
ci: let clas12-validation set the GEMC ref (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Jan 30, 2024
1 parent 66bf7fc commit 691f5e4
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,5 @@ on:
workflow_dispatch:

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", "ref": "${{ needs.get_gemc_tag.outputs.tag }}" }
}

0 comments on commit 691f5e4

Please sign in to comment.