I found the issue. I was using the wrong event. The correct one is: github.event.workflow_run.name
- name: Download Staging Artifact
if: github.event.workflow_run.name == Smoke Test Staging
run: |
gh run download ${{ github.event.workflow_run.id }} \
-p "playwright-staging-report-*" \
-D playwright-staging-reports
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Thanks everyone