Skip to content

Commit

Permalink
fix(component): Add check for workflow_run (#10753)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz authored Dec 18, 2024
1 parent 7298959 commit 352705e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upload-idf-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
steps:
- name: Get the release tag
env:
head_branch: ${{ github.event.inputs.tag || github.event.workflow_run.head_branch }}
head_branch: ${{ inputs.tag || github.event.workflow_run.head_branch }}
run: |
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ] && [ "${{ github.event_name }}" == "workflow_run" ]; then
echo "Release workflow failed. Exiting..."
exit 1
fi
Expand Down

0 comments on commit 352705e

Please sign in to comment.