Skip to content

Commit 7298959

Browse files
authored
Merge pull request #10752 from lucasssvaz/ci/component
fix(component): Checkout proper branch for uploading component
2 parents bd7a74e + 4884c96 commit 7298959

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

+7-1
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,7 +20,7 @@ jobs:
1520
steps:
1621
- name: Get the release tag
1722
env:
18-
head_branch: ${{ github.event.workflow_run.head_branch }}
23+
head_branch: ${{ github.event.inputs.tag || github.event.workflow_run.head_branch }}
1924
run: |
2025
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
2126
echo "Release workflow failed. Exiting..."
@@ -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)