From a74c3504727302bcb453b22c48e87481218b06e5 Mon Sep 17 00:00:00 2001 From: selankon Date: Tue, 20 Feb 2024 16:36:00 +0100 Subject: [PATCH] chore(gh-action): fix artifact url --- .github/workflows/artifact_url_comment.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/artifact_url_comment.yml b/.github/workflows/artifact_url_comment.yml index 078ab4e4..7d42758e 100644 --- a/.github/workflows/artifact_url_comment.yml +++ b/.github/workflows/artifact_url_comment.yml @@ -40,9 +40,14 @@ jobs: repo: context.repo.repo, }) + - name: Get the artifact url + run: > + ARTIFACT_URL=$(curl https://api.github.com/repos/libremesh/lime-app/actions/runs/${{github.event.workflow_run.id }}/artifacts -s | jq '.artifacts[0].url' | sed "s/[\'\"]//g" | awk -F'/' '{print $NF}') + ;echo $ARTIFACT_URL; echo "ARTIFACT_URL=$ARTIFACT_URL" >> $GITHUB_ENV + - name: Update the PR comment uses: peter-evans/create-or-update-comment@v2 with: issue-number: ${{ env.PR_NUM }} body: | - Artifacts deployed: ${{github.event.workflow_run.artifacts_url }} + Artifacts deployed: https://github.com/libremesh/lime-app/actions/runs/${{github.event.workflow_run.id}}/artifacts/${{ env.ARTIFACT_URL }}