From f24daeb9e2f1019f80e6e7b255489ddca22be028 Mon Sep 17 00:00:00 2001 From: Sergei Silnov Date: Thu, 19 Dec 2024 11:15:23 +0100 Subject: [PATCH] ci: Allow push to the component registry from a given git ref --- .github/workflows/upload-idf-component.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload-idf-component.yml b/.github/workflows/upload-idf-component.yml index 8faddef7e5f..5ce4562c01a 100644 --- a/.github/workflows/upload-idf-component.yml +++ b/.github/workflows/upload-idf-component.yml @@ -4,7 +4,10 @@ on: workflow_dispatch: inputs: tag: - description: 'Tag to push to the component registry' + description: 'Version to push to the component registry' + required: true + git_ref: + description: 'Git ref with the source to push to the component registry' required: true workflow_run: workflows: ["ESP32 Arduino Release"] @@ -44,7 +47,7 @@ jobs: - uses: actions/checkout@v4 with: - ref: ${{ env.RELEASE_TAG }} + ref: ${{ inputs.git_ref || env.RELEASE_TAG }} submodules: "recursive" - name: Upload components to the component registry