]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
- Make codecov uploads happen even if some jobs have failed.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 17 May 2024 14:04:57 +0000 (16:04 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 23 May 2024 14:30:37 +0000 (16:30 +0200)
- Fix error in generating list of reports to upload.
- Clean up the implementation a bit.

.github/workflows/cmake.yml
.github/workflows/pigz.yml

index be66d50515129ed0f8fa27dd2e818821d610ec5d..79ee15547fa2992fec6c76a6b36b8bc53c027612 100644 (file)
@@ -744,6 +744,7 @@ jobs:
     name: Upload Coverage Reports
     runs-on: ubuntu-latest
     needs: cmake
+    if: cancelled() == false
     steps:
     - name: Checkout repository
       uses: actions/checkout@v4
@@ -758,16 +759,15 @@ jobs:
     - name: Display all coverage artifacts
       run: |
         ls -R *.xml
-        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ',' | sed 's/,$//g`" >> $GITHUB_ENV
+        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ',' | sed 's/,$//g'`" >> $GITHUB_ENV
 
     - name: Upload reports
       uses: codecov/codecov-action@v4
       if: (env.CODECOV_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng')
       with:
-        token: ${{ secrets.CODECOV_TOKEN || 'e4fdf847-f541-4ab1-9d50-3d27e5913906' }}
         files: ${{ env.CODECOV_REPORTS }}
         name: cmake-umbrella
         verbose: true
         fail_ci_if_error: true
       env:
-        CODECOV_TOKEN: "${{secrets.CODECOV_TOKEN}}"
+        CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
index d7699d4e19ef957f2c290e837fe270373ae8d805..ac2deffb945b7128b9b03c51647eb0d2b7689593 100644 (file)
@@ -136,6 +136,7 @@ jobs:
     name: Upload Coverage Reports
     runs-on: ubuntu-latest
     needs: pigz
+    if: cancelled() == false
     steps:
     - name: Checkout repository
       uses: actions/checkout@v4
@@ -150,16 +151,15 @@ jobs:
     - name: Display all coverage artifacts
       run: |
         ls -R *.xml
-        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ',' | sed 's/,$//g`" >> $GITHUB_ENV
+        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ',' | sed 's/,$//g'`" >> $GITHUB_ENV
 
     - name: Upload reports
       uses: codecov/codecov-action@v4
       if: (env.CODECOV_TOKEN != '' || github.repository == 'zlib-ng/zlib-ng')
       with:
-        token: ${{ secrets.CODECOV_TOKEN || 'e4fdf847-f541-4ab1-9d50-3d27e5913906' }}
         files: ${{ env.CODECOV_REPORTS }}
         name: pigz-umbrella
         verbose: true
         fail_ci_if_error: true
       env:
-        CODECOV_TOKEN: "${{secrets.CODECOV_TOKEN}}"
+        CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"