Skip to content

Commit

Permalink
Merge pull request #10752 from lucasssvaz/ci/component
Browse files Browse the repository at this point in the history
fix(component): Checkout proper branch for uploading component
  • Loading branch information
me-no-dev authored Dec 18, 2024
2 parents bd7a74e + 4884c96 commit 7298959
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/upload-idf-component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Push components to https://components.espressif.com

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to push to the component registry'
required: true
workflow_run:
workflows: ["ESP32 Arduino Release"]
types:
Expand All @@ -15,7 +20,7 @@ jobs:
steps:
- name: Get the release tag
env:
head_branch: ${{ github.event.workflow_run.head_branch }}
head_branch: ${{ github.event.inputs.tag || github.event.workflow_run.head_branch }}
run: |
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
echo "Release workflow failed. Exiting..."
Expand All @@ -39,6 +44,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ env.RELEASE_TAG }}
submodules: "recursive"

- name: Upload components to the component registry
Expand Down

0 comments on commit 7298959

Please sign in to comment.