]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA: tidy up single-line `run` blocks
authorViktor Szakats <commit@vsz.me>
Fri, 6 Jun 2025 20:15:02 +0000 (22:15 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 6 Jun 2025 21:24:27 +0000 (23:24 +0200)
Also double quote a shell variable.

Closes #17552

.github/workflows/configure-vs-cmake.yml
.github/workflows/hacktoberfest-accepted.yml
.github/workflows/http3-linux.yml

index f4a518ccf6481f6a92844343414256efbdba959e..b57e8df184bc81f8263521e9bc56a45c1ae60188 100644 (file)
@@ -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:
index e40da119eb469f5fcc05623e0267dc0b3bf7e105..33bdc8e10f061ef98ae947886e2c48b5a1113910 100644 (file)
@@ -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'
index 3950579d6023124452a1d24fcbc29c6b1417365b..68197ee3c5a65ef58711e6df05278ce824a2202e 100644 (file)
@@ -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'