Skip to content

Commit

Permalink
dasd
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek-kommunicate authored Dec 23, 2024
1 parent 8a374a6 commit 8ccf144
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
- 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

0 comments on commit 8ccf144

Please sign in to comment.