Skip to content

Commit

Permalink
echo artifact ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Aprea committed Dec 22, 2021
1 parent 68107cf commit 4ba43c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/comment-on-pr-with-build-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ jobs:
if: github.event.workflow_run.event == 'repository_dispatch' && github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-20.04
steps:
- name: Get artifact ID
- name: Fetch artifacts
id: fetch_artifacts
run: |
artifacts=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}/artifacts)
echo "::set-output name=artifacts::${artifacts//'%'/'%25'}"
echo "$artifacts"
- name: Get artifact ID
run: |
echo "${{steps.fetch_artifacts.outputs.artifacts}}"

0 comments on commit 4ba43c8

Please sign in to comment.