From d96d2506ee77492087b507c74b11b76662371305 Mon Sep 17 00:00:00 2001 From: youben11 Date: Wed, 5 Jan 2022 16:30:42 +0100 Subject: [PATCH] fix: remove org name in release api URL org name is already part of github.repository --- .github/workflows/continuous-integration.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 83a261b26..bed69d996 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -379,8 +379,8 @@ jobs: - name: Download and Install Package run: | wget --auth-no-challenge --header='Accept:application/octet-stream' \ - "https://${{ secrets.GH_TOKEN_RELEASE }}:@api.github.com/repos/zama-ai/${{ github.repository }}/releases/assets/`curl -s -u "zama-bot:${{ secrets.GH_TOKEN_RELEASE }}" \ - https://api.github.com/repos/zama-ai/${{ github.repository }}/releases | \ + "https://${{ secrets.GH_TOKEN_RELEASE }}:@api.github.com/repos/${{ github.repository }}/releases/assets/`curl -s -u "zama-bot:${{ secrets.GH_TOKEN_RELEASE }}" \ + https://api.github.com/repos/${{ github.repository }}/releases | \ jq 'map(select(.tag_name == "${{ github.ref_name }}"))' | \ jq '.[0].assets' | \ jq 'map(select(.name == "${{ steps.extract-filename.outputs.FILE_NAME }}" ))' | \ @@ -420,8 +420,8 @@ jobs: - name: Download and Install Package run: | wget --auth-no-challenge --header='Accept:application/octet-stream' \ - "https://${{ secrets.GH_TOKEN_RELEASE }}:@api.github.com/repos/zama-ai/${{ github.repository }}/releases/assets/`curl -s -u "zama-bot:${{ secrets.GH_TOKEN_RELEASE }}" \ - https://api.github.com/repos/zama-ai/${{ github.repository }}/releases | \ + "https://${{ secrets.GH_TOKEN_RELEASE }}:@api.github.com/repos/${{ github.repository }}/releases/assets/`curl -s -u "zama-bot:${{ secrets.GH_TOKEN_RELEASE }}" \ + https://api.github.com/repos/${{ github.repository }}/releases | \ jq 'map(select(.tag_name == "${{ github.ref_name }}"))' | \ jq '.[0].assets' | \ jq 'map(select(.name == "${{ steps.extract-filename.outputs.FILE_NAME }}" ))' | \