Skip to content

Commit

Permalink
fix readme sync workflow (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Mar 22, 2024
1 parent 5c00d2a commit ed68815
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/CI_readme_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<INTEGRATION_FOLDER_NAME>-v1.0.0"
required: true
type: string
default: integrations/<INTEGRATION_FOLDER_NAME>-v1.0.0

env:
TAG: ${{ github.inputs.tag || github.ref_name }}

jobs:
sync:
runs-on: ubuntu-latest
Expand All @@ -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)
Expand Down

0 comments on commit ed68815

Please sign in to comment.