Merge pull request #10752 from lucasssvaz/ci/component
fix(component): Checkout proper branch for uploading component
This commit is contained in:
commit
7298959ce5
1 changed files with 7 additions and 1 deletions
8
.github/workflows/upload-idf-component.yml
vendored
8
.github/workflows/upload-idf-component.yml
vendored
|
|
@ -1,6 +1,11 @@
|
||||||
name: Push components to https://components.espressif.com
|
name: Push components to https://components.espressif.com
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Tag to push to the component registry'
|
||||||
|
required: true
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["ESP32 Arduino Release"]
|
workflows: ["ESP32 Arduino Release"]
|
||||||
types:
|
types:
|
||||||
|
|
@ -15,7 +20,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Get the release tag
|
- name: Get the release tag
|
||||||
env:
|
env:
|
||||||
head_branch: ${{ github.event.workflow_run.head_branch }}
|
head_branch: ${{ github.event.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" ]; then
|
||||||
echo "Release workflow failed. Exiting..."
|
echo "Release workflow failed. Exiting..."
|
||||||
|
|
@ -39,6 +44,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ env.RELEASE_TAG }}
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
- name: Upload components to the component registry
|
- name: Upload components to the component registry
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue