]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: Replace the deprecated `::set-output` command by writing to $GITHUB_OUTPUT in...
authorTim Duesterhus <tim@bastelstu.be>
Fri, 14 Oct 2022 17:46:07 +0000 (19:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Oct 2022 17:50:34 +0000 (19:50 +0200)
See "CI: Replace the deprecated `::set-output` command by writing to
$GITHUB_OUTPUT in matrix.py" for the reasoning behind this commit.

.github/workflows/compliance.yml
.github/workflows/vtest.yml
.github/workflows/windows.yml

index 9d14ff57d5e205f2bd7fea0b433c3e0715dd7cd8..509eaf84110089dcc6af3f4cfe555b70bb00468a 100644 (file)
@@ -27,7 +27,7 @@ jobs:
         curl -fsSL https://github.com/summerwind/h2spec/releases/download/${H2SPEC_VERSION}/h2spec_linux_amd64.tar.gz -o h2spec.tar.gz
         tar xvf h2spec.tar.gz
         sudo install -m755 h2spec /usr/local/bin/h2spec
-        echo "::set-output name=version::${H2SPEC_VERSION}"
+        echo "version=${H2SPEC_VERSION}" >> $GITHUB_OUTPUT
     - name: Compile HAProxy with ${{ matrix.CC }}
       run: |
         make -j$(nproc) all \
@@ -50,7 +50,7 @@ jobs:
         fi
         echo "::endgroup::"
         haproxy -vv
-        echo "::set-output name=version::$(haproxy -v |awk 'NR==1{print $3}')"
+        echo "version=$(haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT
     - name: Launch HAProxy ${{ steps.show-version.outputs.version }}
       run: haproxy -f .github/h2spec.config -D
     - name: Run h2spec ${{ steps.install-h2spec.outputs.version }}
index 7a1c1ef62a5f63c5b49bdd662ae0222d3c367e65..75c79c25af6ddf9f1cdfebb523898ae63b117683 100644 (file)
@@ -53,7 +53,7 @@ jobs:
     - name: Generate cache key
       id: generate-cache-key
       run: |
-        echo "::set-output name=key::$(echo ${{ matrix.name }} | sha256sum | awk '{print $1}')"
+        echo "key=$(echo ${{ matrix.name }} | sha256sum | awk '{print $1}')" >> $GITHUB_OUTPUT
 
     - name: Cache SSL libs
       if: ${{ matrix.ssl && matrix.ssl != 'stock' && matrix.ssl != 'BORINGSSL=yes' && matrix.ssl != 'QUICTLS=yes' }}
@@ -124,7 +124,7 @@ jobs:
         fi
         echo "::endgroup::"
         haproxy -vv
-        echo "::set-output name=version::$(haproxy -v |awk 'NR==1{print $3}')"
+        echo "version=$(haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT
     - name: Install problem matcher for VTest
       # This allows one to more easily see which tests fail.
       run: echo "::add-matcher::.github/vtest.json"
index 3d034617fe60f18ee2898730d029edfb17a9815c..30309086230fd12c3d4265f0b22d557fb07db6a8 100644 (file)
@@ -64,4 +64,4 @@ jobs:
       id: show-version
       run: |
         ./haproxy -vv
-        echo "::set-output name=version::$(./haproxy -v |awk 'NR==1{print $3}')"
+        echo "version=$(./haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT