Skip to content

Commit

Permalink
fix check if theos/sdks folder is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jschiefner committed Oct 15, 2022
1 parent 2511d6e commit c3b0895
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ runs:
if [ ! -d "${{ github.workspace }}/${{ inputs.theos-dir }}" ]; then
git clone ${{ inputs.theos-src }} ${{ github.workspace }}/${{ inputs.theos-dir }} --recursive
echo "Theos successfully obtained!"
else
else
echo "Theos already cached, skipping..."
fi
- name: get sdks
shell: bash
run: |
if [ ! -d "${{ github.workspace }}/${{ inputs.theos-dir }}/sdks" ]; then
if [[ "$(ls ${{ github.workspace }}/${{ inputs.theos-dir }}/sdks)" ]]; then
echo "Theos SDKs already cached, skipping..."
else
cd ${{ github.workspace }}/${{ inputs.theos-dir }}/sdks
curl -sLO ${{ inputs.theos-sdks }}/archive/master.zip
TMP=$(mktemp -d)
7z x master.zip -o$TMP
mv $TMP/*-master/*.sdk $THEOS/sdks
rm -r master.zip $TMP
else
echo "Theos SDKs already cached, skipping..."
fi
branding:
Expand Down

0 comments on commit c3b0895

Please sign in to comment.