Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 54754ce

Browse files
authored
mmar-patcher: Default version if not provided
1 parent 583a5bd commit 54754ce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/mmar-patcher.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ jobs:
3737
then
3838
echo "::set-env name=VERSION::${{ github.event.inputs.version }}"
3939
else
40-
echo "::set-env name=VERSION::`git ls-remote --tags https://github.com/topjohnwu/Magisk | grep manager- | awk -F / '{print $NF}' | tail -n 1 | awk -F '-' '{print $2}'`"
40+
if [[ ! -z "${{ github.event.inputs.url }}" ]]
41+
then
42+
echo "::set-env name=VERSION::url-provided"
43+
else
44+
echo "::set-env name=VERSION::`git ls-remote --tags https://github.com/topjohnwu/Magisk | grep manager- | awk -F / '{print $NF}' | tail -n 1 | awk -F '-' '{print $2}'`"
45+
fi
4146
fi
42-
43-
[[ ! -z "${{ github.event.inputs.url }}" ]] && echo "::set-env name=VERSION::url-provided"
4447
4548
- name: Bail If Existing
4649
id: bail_if_existing

0 commit comments

Comments
 (0)