This action will print and set-output all artifacts from another workflow
name: List Artifact
on:
workflow_run:
workflows: ["Generate Artifacts"]
types: [completed]
jobs:
list-artifacts:
runs-on: ubuntu-latest
steps:
- name: List artifacts
id: list-artifacts
uses: chiaretto/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Print variables
run: |
echo artifact-name: ${{ steps.list-artifacts.outputs.artifact-name }}