Files
ubuntu-act_gitea/scripts/go-semantic-release.sh
Aaron Guise b382cb0404
All checks were successful
CI / build (push) Successful in 15s
CI / release (release) Successful in 4m45s
fix: Don't try copy if current working dir is /tmp 🐛
2024-07-23 09:38:27 +12:00

14 lines
406 B
Bash
Executable File

#!/bin/bash
################################
# Wrapper script for go-semantic-release
# This is to allow use of cached plugin versions in
# standard container for Gitea Actions runner.
################################
# Copy pre-loaded plugins
if [ "$(pwd)" != "/tmp" ]; then
cp -Rf /tmp/.semrel "$(pwd)"/;
fi
# Execute semantic-release and expand parameters
/usr/local/bin/go-semantic-release "$@"