mirror of
https://github.com/ModOrganizer2/build-with-mob-action.git
synced 2026-07-27 14:08:35 -07:00
Fix mob build for non-master branch.
This commit is contained in:
+2
-3
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user