From 8ccf144197ee1b53a38761088d78efb524283cb2 Mon Sep 17 00:00:00 2001 From: Prateek Singh Date: Mon, 23 Dec 2024 17:18:25 +0530 Subject: [PATCH] dasd --- .github/workflows/temp.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/temp.yml b/.github/workflows/temp.yml index 2c6d49f8..c23ebcfb 100644 --- a/.github/workflows/temp.yml +++ b/.github/workflows/temp.yml @@ -16,7 +16,23 @@ jobs: runs-on: ubuntu-latest steps: - - name: Get Token - run: | - response = $(curl -H "Authorization: token ${{ secrets.DOWNLOAD_TOKEN }}" -L "https://api.github.com/repos/Kommunicate-io/Kommunicate-Android-Chat-SDK/actions/artifacts/2355441843" -o artifact.zip) - echo "response from curl= $response" \ No newline at end of file + - name: Send HTTP request to download artifact + id: request + uses: tyrrrz/action-http-request@master + with: + url: ${{ steps.get-artifact-url.outputs.artifact_url }} + method: GET + headers: | + Authorization: token ${{ secrets.DOWNLOAD_TOKEN }} + retry-count: 3 + retry-delay: 500 + + - name: Print outputs + run: | + echo "Status: ${{ steps.request.outputs.status }}" + echo "Success: ${{ steps.request.outputs.success }}" + echo "Headers: ${{ steps.request.outputs.headers }}" + echo "Body: ${{ steps.request.outputs.body }}" + echo "Artifact downloaded successfully as artifact.zip" + # Optional: Save the body (artifact) to a file if it is binary content + echo "${{ steps.request.outputs.body }}" > artifact.zip \ No newline at end of file