aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-28 19:48:19 +0800
committerGitHub <noreply@github.com>2022-12-28 19:48:19 +0800
commit2732759bffc478f258de448cdad53b3dd27553d8 (patch)
tree2de92a6b9008b4049b3d560294a3cd4fbd146084
parent3b9b43063c76e52b119aaac96e50c708d7d39479 (diff)
downloadrneovim-2732759bffc478f258de448cdad53b3dd27553d8.tar.gz
rneovim-2732759bffc478f258de448cdad53b3dd27553d8.tar.bz2
rneovim-2732759bffc478f258de448cdad53b3dd27553d8.zip
ci(release): properly set multiline output variable (#21560)
-rw-r--r--.github/workflows/release.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 113b04ab2b..1df33962e5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -36,7 +36,9 @@ jobs:
id: build
run: |
CC=gcc-10 make CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH="
- printf 'version=%s\n' "$(./build/bin/nvim --version | head -n 3 | sed -z 's/\n/%0A/g')" >> $GITHUB_OUTPUT
+ printf 'version<<END\n' >> $GITHUB_OUTPUT
+ ./build/bin/nvim --version | head -n 3 >> $GITHUB_OUTPUT
+ printf 'END\n' >> $GITHUB_OUTPUT
printf 'release=%s\n' "$(./build/bin/nvim --version | head -n 1)" >> $GITHUB_OUTPUT
make DESTDIR="$GITHUB_WORKSPACE/build/release/nvim-linux64" install
cd "$GITHUB_WORKSPACE/build/"