Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4884c96

Browse filesBrowse files
committed
fix(component): Checkout proper branch for uploading component
1 parent bd7a74e commit 4884c96
Copy full SHA for 4884c96

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

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

Copy file name to clipboardExpand all lines: .github/workflows/upload-idf-component.yml
+7-1Lines changed: 7 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.