fix: Don't try copy if current working dir is /tmp 🐛
All checks were successful
CI / build (push) Successful in 15s
CI / release (release) Successful in 4m45s

This commit is contained in:
2024-07-23 09:38:27 +12:00
parent 3e10bd1337
commit b382cb0404

View File

@@ -6,7 +6,9 @@
################################
# Copy pre-loaded plugins
cp -Rf /tmp/.semrel "$(pwd)"/;
if [ "$(pwd)" != "/tmp" ]; then
cp -Rf /tmp/.semrel "$(pwd)"/;
fi
# Execute semantic-release and expand parameters
/usr/local/bin/go-semantic-release "$@"