Skip to content

Commit ed68815

Browse files
authored
fix readme sync workflow (#612)
1 parent 5c00d2a commit ed68815

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/CI_readme_sync.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ on:
66
- "**-v[0-9].[0-9]+.[0-9]+"
77
workflow_dispatch: # Activate this workflow manually
88
inputs:
9-
ref:
9+
tag:
1010
description: "Tag with this format: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0"
1111
required: true
1212
type: string
1313
default: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0
1414

15+
env:
16+
TAG: ${{ github.inputs.tag || github.ref_name }}
17+
1518
jobs:
1619
sync:
1720
runs-on: ubuntu-latest
@@ -34,7 +37,7 @@ jobs:
3437
shell: python
3538
run: |
3639
import os
37-
project_path = "${{ github.ref_name }}".rsplit("-", maxsplit=1)[0]
40+
project_path = os.environ["TAG"].rsplit("-", maxsplit=1)[0]
3841
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
3942
print(f'project_path={project_path}', file=f)
4043

0 commit comments

Comments
 (0)