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

Commit

Permalink
mmar-patcher: Default version if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tytydraco authored Aug 24, 2020
1 parent 583a5bd commit 54754ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/mmar-patcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ jobs:
then
echo "::set-env name=VERSION::${{ github.event.inputs.version }}"
else
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}'`"
if [[ ! -z "${{ github.event.inputs.url }}" ]]
then
echo "::set-env name=VERSION::url-provided"
else
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}'`"
fi
fi
[[ ! -z "${{ github.event.inputs.url }}" ]] && echo "::set-env name=VERSION::url-provided"
- name: Bail If Existing
id: bail_if_existing
Expand Down

0 comments on commit 54754ce

Please sign in to comment.