]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: build-packages.yml - use normalized product name to store attestations
authorromeroalx <alexis.romero@open-xchange.com>
Thu, 23 May 2024 13:30:03 +0000 (15:30 +0200)
committerromeroalx <alexis.romero@open-xchange.com>
Tue, 4 Jun 2024 08:09:26 +0000 (10:09 +0200)
.github/workflows/build-packages.yml

index fc810a9df91b44acf6992102c2c5b78558b61125..24f8183842578134988e41cd7a2df7c62be9d2b6 100644 (file)
@@ -67,6 +67,7 @@ jobs:
         os: ${{fromJson(needs.prepare.outputs.oslist)}}
       fail-fast: false
     outputs:
+      product-name: ${{ steps.normalize-name.outputs.normalized-package-name }}
       version: ${{ steps.getversion.outputs.version }}
       pkghashes-el-7: ${{ steps.pkghashes.outputs.pkghashes-el-7 }}
       pkghashes-el-8: ${{ steps.pkghashes.outputs.pkghashes-el-8 }}
@@ -143,7 +144,7 @@ jobs:
     runs-on: ubuntu-22.04
     steps:
       - name: Get list of outputs from build jobs
-        run: echo '${{ toJSON(needs.build.outputs) }}' | jq 'keys[]' | grep -v version | tee /tmp/build-outputs.txt
+        run: echo '${{ toJSON(needs.build.outputs) }}' | jq 'keys[]' | grep -vE 'version|product-name' | tee /tmp/build-outputs.txt
       - name: Get list of OS inputs
         run: for i in ${{ inputs.os }}; do echo "\"pkghashes-$i\""; done | sort | tee /tmp/os-inputs.txt; echo "\"srchashes\"" | tee -a /tmp/os-inputs.txt
       - name: Fail if there is a hash missing
@@ -202,7 +203,7 @@ jobs:
           SSHKEY: ${{ secrets.DOWNLOADS_AUTOBUILT_SECRET }}
           RSYNCTARGET: ${{ secrets.DOWNLOADS_AUTOBUILT_RSYNCTARGET }}
           HOSTKEY: ${{ secrets.DOWNLOADS_AUTOBUILT_HOSTKEY }}
-          PRODUCT: ${{ inputs.product }}
+          PRODUCT: ${{ needs.build.outputs.product-name }}
           VERSION: ${{ needs.build.outputs.version }}
         if:
           "${{ env.SSHKEY != '' }}"