Skip to content

Commit

Permalink
Also run on workflow_run
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 11, 2024
1 parent 15e615c commit e76645f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/actions/pr-comment-data-export/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ inputs:
runs:
using: composite
steps:
- run: echo "${{ github.event_name }}"
shell: bash
- if: github.event_name == 'pull_request'
- if: >
github.event.workflow_run.event == 'pull_request' ||
github.event.workflow_run.event == 'workflow_run'
shell: bash
run: |
mkdir comment-data
Expand All @@ -31,7 +31,9 @@ runs:
echo "${{ inputs.log-url }}" > comment-data/log-url
echo "${{ github.event.number }}" > comment-data/pr-number
- if: github.event_name == 'pull_request'
- if: >
github.event.workflow_run.event == 'pull_request' ||
github.event.workflow_run.event == 'workflow_run'
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.name }}
Expand Down

0 comments on commit e76645f

Please sign in to comment.