Skip to content

Commit

Permalink
chore(gh-action): fix artifact url
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Feb 20, 2024
1 parent 98282f2 commit a74c350
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/artifact_url_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit a74c350

Please sign in to comment.