diff --git a/action.yml b/action.yml index b57ce3f..b11e169 100644 --- a/action.yml +++ b/action.yml @@ -34,9 +34,11 @@ runs: if [ "$version" = "latest" ]; then version="$(curl -s "https://api.github.com/repos/jungaretti/bacon/releases/latest" | jq -r '.tag_name')" fi + echo "Downloading version $version" asset="bacon-$version-linux-amd64.tar.gz" url="https://github.com/jungaretti/bacon/releases/download/$version/$asset" + echo "Downloading from $url" # Download Bacon pushd "$(mktemp -d)" @@ -44,6 +46,8 @@ runs: tar -xf $asset bacon_bin="$(pwd)/bacon" + echo "Downloaded $bacon_bin" + echo "BACON_BIN=$bacon_bin" >> "$GITHUB_OUTPUT" - name: Deploy records shell: bash @@ -54,4 +58,12 @@ runs: run: | test "${{ inputs.delete }}" = 'true' && DELETE='-d' || DELETE='' test "${{ inputs.create }}" = 'true' && CREATE='-c' || CREATE='' - $BACON_BIN ping && $BACON_BIN deploy ${{ inputs.config }} $DELETE $CREATE + + ping_command="$BACON_BIN ping" + deploy_command="$BACON_BIN deploy ${{ inputs.config }} $DELETE $CREATE" + + echo "Running $ping_command" + $ping_command + + echo "Running $deploy_command" + $deploy_command