Skip to content

Commit a6c7c3e

Browse files
committed
make code more compact meow
Signed-off-by: rooot <hey@rooot.gay>
1 parent 8337271 commit a6c7c3e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

action.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,12 @@ runs:
208208
if [ "${{ steps.platform.outputs.target_id }}" != "ios" ]; then
209209
geode sdk install "${{ github.workspace }}/geode-sdk-clone"
210210
else
211-
echo "cloning diff geode"
211+
echo "cloning ios geode"
212212
git clone https://github.com/geode-catgirls/geode -b nightly "${{ github.workspace }}/geode-sdk-clone"
213213
mkdir -p "${{ github.workspace }}/geode-sdk-clone/bin"
214-
# dl nightly release binaries
215-
releases=$(curl -s https://api.github.com/repos/geode-catgirls/geode/releases)
216-
dl_url=$(echo "$releases" | jq '.[] | select(.tag_name=="nightly").assets[] | select(.name|endswith("-ios.zip")).browser_download_url' -r)
214+
dl_url=$(curl -s https://api.github.com/repos/geode-catgirls/geode/releases | jq '.[] | select(.tag_name=="nightly").assets[] | select(.name|endswith("-ios.zip")).browser_download_url' -r)
217215
echo "nightly dl url: $dl_url"
218-
curl -L "$dl_url" -o "geode-ios.zip"
219-
unzip "geode-ios.zip" -d "${{ github.workspace }}/geode-sdk-clone/bin/nightly"
216+
curl -L "$dl_url" -o "geode-ios.zip" && unzip "geode-ios.zip" -d "${{ github.workspace }}/geode-sdk-clone/bin/nightly" && rm "geode-ios.zip"
220217
fi
221218
222219
# silly github actions wont refresh the env

0 commit comments

Comments
 (0)