diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80e6f62..9cbfe16 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,7 +107,7 @@ jobs: mkdir -p dist gzip "devtool-wsl2-${{ env.COMMIT_SHORT_SHA }}.tar" - split --verbose --numeric-suffixes --bytes=2000M --suffix-length=1 \ + split --verbose --bytes=2000M --suffix-length=1 --numeric-suffixes=1 \ devtool-wsl2-${{ env.COMMIT_SHORT_SHA }}.tar.gz \ dist/devtool-wsl2-${{ env.COMMIT_SHORT_SHA }}.tar.gz.part @@ -135,7 +135,7 @@ jobs: if [[ "${{ github.event_name }}" == "schedule" ]]; then echo "DRAFT=false" >> $GITHUB_ENV echo "MAKE_LATEST=true" >> $GITHUB_ENV - elif [[ "${{ github.event_name }}" == "pull_request" && "${{ env.IS_BOT }}" == "false" ]]; then + elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.action }}" != "closed" && "${{ env.IS_BOT }}" == "false" ]]; then echo "DRAFT=true" >> $GITHUB_ENV echo "MAKE_LATEST=false" >> $GITHUB_ENV elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.action }}" == "closed" && "${{ github.event.pull_request.merged }}" == "true" ]]; then