fix(component): Add check for workflow_run (#10753)
This commit is contained in:
parent
7298959ce5
commit
352705e607
1 changed files with 2 additions and 2 deletions
4
.github/workflows/upload-idf-component.yml
vendored
4
.github/workflows/upload-idf-component.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue