fix(component): Checkout proper branch for uploading component · espressif/arduino-esp32@4884c96 (original) (raw)

Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
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,7 +20,7 @@ jobs:
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: ${{ github.event.inputs.tag |
19 24 run: |
20 25 if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
21 26 echo "Release workflow failed. Exiting..."
@@ -39,6 +44,7 @@ jobs:
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