git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] CI: migrate away from deprecated "set-output" syntax

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 7, 2022, 23:57 UTC
Message-ID
<xmqq359q6a30.fsf@gitster.g>
In-Reply-To
<patch-v2-1.1-4e7db0db3be-20221207T014848Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 6 quoted lines
>     +-          echo "::set-output name=base::$base"
>     +-          echo "::set-output name=head::$head"
>     ++          cat >>$GITHUB_OUTPUT <<-EOF
>     ++          base=$base
>     ++          head=$head
>     ++          EOF
Hmph, I do not trust this part.

The redirection operator "<<-" causes the leading tabs in the here-doc-text stripped, but the .yml file does not indent with tab to begin with.

I suspect the leading spaces will all be stripped and not seen by the shell, so the distinction may not matter, which means the use of "<<-" is very much misleading.

Let's stick to the dumb and proven
	echo "base=$base" >>$GITHUB_OUTPUT
	echo "head=$head" >>$GITHUB_OUTPUT
instead, which is used throughout the rewrite in this patch.
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 6 of 9 in “CI: migrate away from deprecated "set-output" syntax”
  1. CI: migrate away from deprecated "set-output" syntaxÆvar Arnfjörð Bjarmason, Dec 6, 2022
  2. Victoria DyeDec 6, 2022
  3. Ævar Arnfjörð BjarmasonDec 6, 2022
  4. Taylor BlauDec 7, 2022
  5. CI: migrate away from deprecated "set-output" syntaxÆvar Arnfjörð Bjarmason, Dec 7, 2022
  6. Junio C HamanoDec 7, 2022
  7. Ævar Arnfjörð BjarmasonDec 8, 2022
  8. Junio C HamanoDec 8, 2022
  9. CI: migrate away from deprecated "set-output" syntaxÆvar Arnfjörð Bjarmason, Dec 8, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.