diff --git a/.github/workflows/zip.yml b/.github/workflows/zip.yml index 2b75022..18c36c1 100644 --- a/.github/workflows/zip.yml +++ b/.github/workflows/zip.yml @@ -25,11 +25,11 @@ jobs: # we need to do this because python throws an error due to the invalid octal prefix: # https://unix.stackexchange.com/a/79372/295814 # https://stackoverflow.com/a/1315213/674685 ' -> '\'' - sed -i --regexp-extended 's/('\''version'\'':) .+(,.+)/\1 '"$(date "+(%-Y, %-m, %-d)" -u)"'\2/' io_scene_sphnx/__init__.py + sed -i --regexp-extended 's/('\''version'\'':) .+(,.+)/\1 '"$(date "+(%-Y, %-m, %-d)" -u)"'\2/' io_scene_sphinx/__init__.py # swy: only pack it when the folder has changed since the last time we ran a GitHub Actions job - if [[ ! -z "$(git diff --quiet HEAD "$prev_run_sha" -- io_scene_sphnx || echo changed)" || "$(git rev-list --format=%B --max-count=1 HEAD | grep --count --ignore-case --max-count=1 '!force')" -ge 1 ]]; then - 7z a "sphinx-blender-tools-$(date +%Y.%m.%d-%H.%M -u).zip" io_scene_sphnx + if [[ ! -z "$(git diff --quiet HEAD "$prev_run_sha" -- io_scene_sphinx || echo changed)" || "$(git rev-list --format=%B --max-count=1 HEAD | grep --count --ignore-case --max-count=1 '!force')" -ge 1 ]]; then + 7z a "sphinx-blender-tools-$(date +%Y.%m.%d-%H.%M -u).zip" io_scene_sphinx fi - name: Upload Release Asset