Fix mob build for non-master branch.

This commit is contained in:
Mikael CAPELLE
2023-09-18 10:48:37 +02:00
parent aa39cb12cd
commit 86495a1fe2
+2 -3
View File
@@ -43,11 +43,10 @@ runs:
# mob
- name: Determine mob branch
id: determine-mob-branch
shell: sh +e {0}
shell: bash
run: |
branch=master
git ls-remote https://github.com/ModOrganizer2/mob.git ${{ inputs.mo2-branch }}
if [ $? -eq 0 ]; then
if git ls-remote --exit-code https://github.com/ModOrganizer2/mob.git ${{ inputs.mo2-branch }} > /dev/null 2>&1; then
branch=${{ inputs.mo2-branch }}
fi
echo "branch=${branch}" >> "$GITHUB_OUTPUT"