Skip to content

Commit

Permalink
Merge pull request #376 from MEDomics-UdeS/second_packaging_attempt
Browse files Browse the repository at this point in the history
Bug fix: Submodules were not cloned at the correct branch
  • Loading branch information
MahdiAll99 authored Nov 29, 2024
2 parents 46ec335 + 9864d77 commit c5d104d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/automaticBuilding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # Fetch full history for branches

- name: Checking out the correct branches for submodules
run: |
git submodule foreach '
if [ "$name" = "pythonCode/submodules/MEDimage" ]; then
git fetch origin && git checkout -B dev_lab origin/dev_lab && git pull origin dev_lab
elif [ "$name" = "pythonCode/submodules/MEDprofiles" ]; then
git fetch origin && git checkout -B fusion_MEDomicsLab origin/fusion_MEDomicsLab && git pull origin fusion_MEDomicsLab
else
echo "No branch specified for $name"
fi
'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -72,6 +86,19 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # Fetch full history for branches

- name: Checking out the correct branches for submodules
run: |
git submodule foreach '
if [ "$name" = "pythonCode/submodules/MEDimage" ]; then
git fetch origin && git checkout -B dev_lab origin/dev_lab && git pull origin dev_lab
elif [ "$name" = "pythonCode/submodules/MEDprofiles" ]; then
git fetch origin && git checkout -B fusion_MEDomicsLab origin/fusion_MEDomicsLab && git pull origin fusion_MEDomicsLab
else
echo "No branch specified for $name"
fi
'
- name: Set up Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -134,6 +161,20 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # Fetch full history for branches

- name: Checking out the correct branches for submodules
run: |
git submodule foreach '
if [ "$name" = "pythonCode/submodules/MEDimage" ]; then
git fetch origin && git checkout -B dev_lab origin/dev_lab && git pull origin dev_lab
elif [ "$name" = "pythonCode/submodules/MEDprofiles" ]; then
git fetch origin && git checkout -B fusion_MEDomicsLab origin/fusion_MEDomicsLab && git pull origin fusion_MEDomicsLab
else
echo "No branch specified for $name"
fi
'
- name: Setup Go
uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit c5d104d

Please # to comment.