diff --git a/VERSION b/VERSION index 2228cad..fae59ca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.7 +0.6.8 diff --git a/actions/release-post-merge/action.yml b/actions/release-post-merge/action.yml index 0c030ae..3759060 100644 --- a/actions/release-post-merge/action.yml +++ b/actions/release-post-merge/action.yml @@ -137,6 +137,7 @@ runs: RELEASE_STATE_DIR: ${{ runner.temp }}/release-post-merge-state run: | set -euo pipefail + set +e php "${RELEASE_TOOL_PATH}" release:finalize \ --preparation "${RELEASE_STATE_DIR}/release-preparation.json" \ --config "${RELEASE_CONFIG_PATH}" \ @@ -144,6 +145,12 @@ runs: --apply-history-sync \ --json \ > "${RELEASE_STATE_DIR}/prepared-release.json" + status=$? + set -e + if [[ "${status}" -ne 0 ]]; then + cat "${RELEASE_STATE_DIR}/prepared-release.json" || true + exit "${status}" + fi prepared_id="$(php -r '$p=json_decode(file_get_contents($argv[1]),true,512,JSON_THROW_ON_ERROR); echo $p["id"];' "${RELEASE_STATE_DIR}/prepared-release.json")" echo "prepared-release-id=${prepared_id}" >> "${GITHUB_OUTPUT}"