]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fix deprecated actions/upload-artifact@v3 in GitHub Actions 4344/head
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Fri, 7 Feb 2025 15:46:58 +0000 (18:46 +0300)
committerMatwey V. Kornilov <matwey.kornilov@gmail.com>
Thu, 13 Feb 2025 11:21:42 +0000 (14:21 +0300)
(cherry picked from commit 0edf8505c239b021dead7b1226b71db131cae692)

.github/workflows/build.yml

index 6a0934013ad8f5d9051c31070ebb3df90ec64e08..d2811c4331f2bc8691b1dcdf89abfcf24d90b160 100644 (file)
@@ -64,9 +64,9 @@ jobs:
     - name: Run configure script
       run: ./configure $CONFIGURE_FLAGS
     - name: Upload config.log
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
-        name: ${{ matrix.container_tag }}
+        name: configure log for ${{ matrix.container_tag }} ${{ matrix.configure_flags }}
         path: config.log
     # The configure script relies on the old syntax to check whether functions
     # exist, so we can't specify `-Wstrict-prototypes` globally.
@@ -79,9 +79,9 @@ jobs:
         echo "$?" >make-check.status
       continue-on-error: true
     - name: Upload log files
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
-        name: ${{ matrix.container_tag }}
+        name: Build logs ${{ matrix.container_tag }} ${{ matrix.configure_flags }}
         path: "*.log"
     - name: Report check status
       run: exit $(< make-check.status)
@@ -130,9 +130,9 @@ jobs:
     - name: Run configure script
       run: ./configure $CONFIGURE_FLAGS
     - name: Upload config.log
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
-        name: ${{ matrix.container_tag }}
+        name: configure log for ${{ matrix.container_tag }} ${{ matrix.configure_flags }}
         path: config.log
     - name: Build collectd
       run: make -j$(nproc) -sk CFLAGS="${CFLAGS} -Werror=strict-prototypes"
@@ -143,9 +143,9 @@ jobs:
         echo "$?" >make-check.status
       continue-on-error: true
     - name: Upload log files
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
-        name: ${{ matrix.container_tag }}
+        name: Build logs ${{ matrix.container_tag }} ${{ matrix.configure_flags }}
         path: "*.log"
     - name: Report check status
       run: exit $(< make-check.status)