fix(component): Add check for workflow_run (#10753)

This commit is contained in:
Lucas Saavedra Vaz 2024-12-18 15:55:26 -03:00 committed by GitHub
parent 7298959ce5
commit 352705e607
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,9 +20,9 @@ jobs:
steps: steps:
- name: Get the release tag - name: Get the release tag
env: env:
head_branch: ${{ github.event.inputs.tag || github.event.workflow_run.head_branch }} head_branch: ${{ inputs.tag || github.event.workflow_run.head_branch }}
run: | 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..." echo "Release workflow failed. Exiting..."
exit 1 exit 1
fi fi