Skip to content

Commit

Permalink
Remove a target dir if it exists
Browse files Browse the repository at this point in the history
Helps with potential tag overwrites should they occur.
  • Loading branch information
joshuaboniface committed Mar 9, 2024
1 parent b654633 commit 3090ae2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/app-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
envs: JELLYFIN_VERSION
script_stop: true
script: |
if [ -d "/srv/repository/main/client/android/versions/v${{ env.JELLYFIN_VERSION }}" ] && [ -n "${{ env.JELLYFIN_VERSION }}" ]; then
sudo rm -r /srv/repository/main/client/android/versions/v${{ env.JELLYFIN_VERSION }}
fi
sudo mv /srv/incoming/android/v${{ env.JELLYFIN_VERSION }} /srv/repository/main/client/android/versions/v${{ env.JELLYFIN_VERSION }}
cd /srv/repository/main/client/android;
sudo rm -rf *.apk version.txt;
Expand Down

0 comments on commit 3090ae2

Please sign in to comment.