File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Push components to https://components.espressif.com
2
2
3
3
on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ tag :
7
+ description : ' Tag to push to the component registry'
8
+ required : true
4
9
workflow_run :
5
10
workflows : ["ESP32 Arduino Release"]
6
11
types :
15
20
steps :
16
21
- name : Get the release tag
17
22
env :
18
- head_branch : ${{ github.event.workflow_run.head_branch }}
23
+ head_branch : ${{ inputs.tag || github.event.workflow_run.head_branch }}
19
24
run : |
20
- if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
25
+ if [ "${{ github.event.workflow_run.conclusion }}" != "success" ] && [ "${{ github.event_name }}" == "workflow_run" ] ; then
21
26
echo "Release workflow failed. Exiting..."
22
27
exit 1
23
28
fi
39
44
40
45
- uses : actions/checkout@v4
41
46
with :
47
+ ref : ${{ env.RELEASE_TAG }}
42
48
submodules : " recursive"
43
49
44
50
- name : Upload components to the component registry
You can’t perform that action at this time.
0 commit comments