From: Viktor Szakats Date: Fri, 6 Jun 2025 20:15:02 +0000 (+0200) Subject: GHA: tidy up single-line `run` blocks X-Git-Tag: curl-8_15_0~319 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=900612df7928187fb80a002bca3f03a19552deda;p=thirdparty%2Fcurl.git GHA: tidy up single-line `run` blocks Also double quote a shell variable. Closes #17552 --- diff --git a/.github/workflows/configure-vs-cmake.yml b/.github/workflows/configure-vs-cmake.yml index f4a518ccf6..b57e8df184 100644 --- a/.github/workflows/configure-vs-cmake.yml +++ b/.github/workflows/configure-vs-cmake.yml @@ -47,8 +47,7 @@ jobs: mkdir bld-am && cd bld-am && ../configure --enable-static=no --with-openssl --without-libpsl --without-brotli - name: 'run cmake' - run: | - cmake -B bld-cm -DCURL_WERROR=ON -DCURL_USE_LIBPSL=OFF -DCURL_BROTLI=OFF + run: cmake -B bld-cm -DCURL_WERROR=ON -DCURL_USE_LIBPSL=OFF -DCURL_BROTLI=OFF - name: 'configure log' run: cat bld-am/config.log 2>/dev/null || true @@ -81,8 +80,7 @@ jobs: while [[ $? == 0 ]]; do for i in 1 2 3; do if brew update && brew install automake libtool; then break 2; else echo Error: wait to try again; sleep 10; fi; done; false Too many retries; done - name: 'toolchain versions' - run: | - echo '::group::brew packages installed'; ls -l /opt/homebrew/opt; echo '::endgroup::' + run: echo '::group::brew packages installed'; ls -l /opt/homebrew/opt; echo '::endgroup::' - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: diff --git a/.github/workflows/hacktoberfest-accepted.yml b/.github/workflows/hacktoberfest-accepted.yml index e40da119eb..33bdc8e10f 100644 --- a/.github/workflows/hacktoberfest-accepted.yml +++ b/.github/workflows/hacktoberfest-accepted.yml @@ -37,7 +37,7 @@ jobs: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' run: | gh config set prompt disabled && echo "label=$( - gh repo view --json repositoryTopics --jq '.repositoryTopics[].name' | grep '^hacktoberfest$')" >> $GITHUB_OUTPUT + gh repo view --json repositoryTopics --jq '.repositoryTopics[].name' | grep '^hacktoberfest$')" >> "$GITHUB_OUTPUT" - name: Search relevant commit message lines starting with Closes/Merges if: steps.check.outputs.label == 'hacktoberfest' diff --git a/.github/workflows/http3-linux.yml b/.github/workflows/http3-linux.yml index 3950579d60..68197ee3c5 100644 --- a/.github/workflows/http3-linux.yml +++ b/.github/workflows/http3-linux.yml @@ -133,8 +133,8 @@ jobs: steps.cache-nghttp3.outputs.cache-hit != 'true' || steps.cache-ngtcp2.outputs.cache-hit != 'true' || steps.cache-nghttp2.outputs.cache-hit != 'true' - run: | - echo 'needs-build=true' >> $GITHUB_OUTPUT + + run: echo 'needs-build=true' >> "$GITHUB_OUTPUT" - name: 'install build prereqs' if: steps.settings.outputs.needs-build == 'true'