Skip to content

Commit 0248759

Browse files
authored
Merge branch 'master' into middleware
2 parents a3d10e9 + 352705e commit 0248759

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Push components to https://components.espressif.com
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Tag to push to the component registry'
8+
required: true
49
workflow_run:
510
workflows: ["ESP32 Arduino Release"]
611
types:
@@ -15,9 +20,9 @@ jobs:
1520
steps:
1621
- name: Get the release tag
1722
env:
18-
head_branch: ${{ github.event.workflow_run.head_branch }}
23+
head_branch: ${{ inputs.tag || github.event.workflow_run.head_branch }}
1924
run: |
20-
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
25+
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ] && [ "${{ github.event_name }}" == "workflow_run" ]; then
2126
echo "Release workflow failed. Exiting..."
2227
exit 1
2328
fi
@@ -39,6 +44,7 @@ jobs:
3944
4045
- uses: actions/checkout@v4
4146
with:
47+
ref: ${{ env.RELEASE_TAG }}
4248
submodules: "recursive"
4349

4450
- name: Upload components to the component registry

0 commit comments

Comments
 (0)