Skip to content

Commit bcaeb32

Browse files
committed
fix(component): Add check for workflow_run
1 parent 4884c96 commit bcaeb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/upload-idf-component.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
steps:
2121
- name: Get the release tag
2222
env:
23-
head_branch: ${{ github.event.inputs.tag || github.event.workflow_run.head_branch }}
23+
head_branch: ${{ inputs.tag || github.event.workflow_run.head_branch }}
2424
run: |
25-
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
25+
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ] && [ "${{ github.event_name }}" == "workflow_run" ]; then
2626
echo "Release workflow failed. Exiting..."
2727
exit 1
2828
fi

0 commit comments

Comments
 (0)