From ed68815c0e52b783df46feeb5da9428c16030301 Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Fri, 22 Mar 2024 08:30:02 +0100 Subject: [PATCH] fix readme sync workflow (#612) --- .github/workflows/CI_readme_sync.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI_readme_sync.yml b/.github/workflows/CI_readme_sync.yml index ae9fc832d..447dd2deb 100644 --- a/.github/workflows/CI_readme_sync.yml +++ b/.github/workflows/CI_readme_sync.yml @@ -6,12 +6,15 @@ on: - "**-v[0-9].[0-9]+.[0-9]+" workflow_dispatch: # Activate this workflow manually inputs: - ref: + tag: description: "Tag with this format: integrations/-v1.0.0" required: true type: string default: integrations/-v1.0.0 +env: + TAG: ${{ github.inputs.tag || github.ref_name }} + jobs: sync: runs-on: ubuntu-latest @@ -34,7 +37,7 @@ jobs: shell: python run: | import os - project_path = "${{ github.ref_name }}".rsplit("-", maxsplit=1)[0] + project_path = os.environ["TAG"].rsplit("-", maxsplit=1)[0] with open(os.environ['GITHUB_OUTPUT'], 'a') as f: print(f'project_path={project_path}', file=f)