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 }}