File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Checkout submodule"
2+ description : " Checkout specific repository and branch otherwise, it checkout master"
3+ inputs :
4+ branch :
5+ description : " Branch to checkout"
6+ required : true
7+ repository :
8+ description : " Repository"
9+ required : true
10+ path :
11+ description : " Path"
12+ required : true
13+
14+ runs :
15+ using : " composite"
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v3
19+ with :
20+ repository : ${{ inputs.repository }}
21+ path : ${{ inputs.path }}
22+ - name : Checkout repository branch
23+ id : repositoryBranch
24+ run : |
25+ cd ${{ inputs.path }}
26+ var=$(git ls-remote --heads origin ${{ inputs.branch }})
27+ if [[ -z $var ]]; then
28+ echo "Branch "${{ inputs.branch }}" not found in " ${{ inputs.repository }}
29+ echo "exist=false" >> $GITHUB_OUTPUT
30+ else
31+ echo "Branch "${{ inputs.branch }}" found in " ${{ inputs.repository }}
32+ git fetch
33+ git checkout ${{ inputs.branch }}
34+ git pull
35+ fi
36+ shell : bash
Original file line number Diff line number Diff line change @@ -634,3 +634,27 @@ jobs:
634634 name : AlphaTrack
635635 path : ${{ env.REST_PATH }}/examples/restG4/08.Alphas/data/Run_5MeV_1um.root
636636 retention-days : 1
637+
638+ rawlib-validation :
639+ uses : rest-for-physics/rawlib/.github/workflows/validation.yml@submodule-validation
640+
641+ geant4lib-validation :
642+ uses : rest-for-physics/geant4lib/.github/workflows/validation.yml@submodule-validation
643+
644+ detectorlib-validation :
645+ uses : rest-for-physics/detectorlib/.github/workflows/validation.yml@submodule-validation
646+
647+ connectorslib-validation :
648+ uses : rest-for-physics/connectorslib/.github/workflows/validation.yml@submodule-validation
649+
650+ tracklib-validation :
651+ uses : rest-for-physics/tracklib/.github/workflows/validation.yml@submodule-validation
652+
653+ legacylib-validation :
654+ uses : rest-for-physics/legacylib/.github/workflows/validation.yml@submodule-validation
655+
656+ axionlib-validation :
657+ uses : rest-for-physics/axionlib/.github/workflows/validation.yml@submodule-validation
658+
659+ wimplib-validation :
660+ uses : rest-for-physics/wimplib/.github/workflows/validation.yml@submodule-validation
You can’t perform that action at this time.
0 commit comments