We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c00d2a commit ed68815Copy full SHA for ed68815
.github/workflows/CI_readme_sync.yml
@@ -6,12 +6,15 @@ on:
6
- "**-v[0-9].[0-9]+.[0-9]+"
7
workflow_dispatch: # Activate this workflow manually
8
inputs:
9
- ref:
+ tag:
10
description: "Tag with this format: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0"
11
required: true
12
type: string
13
default: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0
14
15
+env:
16
+ TAG: ${{ github.inputs.tag || github.ref_name }}
17
+
18
jobs:
19
sync:
20
runs-on: ubuntu-latest
@@ -34,7 +37,7 @@ jobs:
34
37
shell: python
35
38
run: |
36
39
import os
- project_path = "${{ github.ref_name }}".rsplit("-", maxsplit=1)[0]
40
+ project_path = os.environ["TAG"].rsplit("-", maxsplit=1)[0]
41
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
42
print(f'project_path={project_path}', file=f)
43
0 commit comments