Skip to content

Commit 79716eb

Browse files
committed
Try to fix CI
1 parent c3a2c5c commit 79716eb

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/generate_plugin_repo.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ def calculate_sha1(file_path):
2020
sha1_hash.update(chunk)
2121
return sha1_hash.hexdigest()
2222

23-
def get_version_from_tag():
24-
"""Get version from git tag or environment variable."""
25-
version = os.environ.get('GITHUB_REF_NAME', '')
26-
if version.startswith('v'):
27-
version = version[1:] # Remove 'v' prefix
28-
return version or "dev"
29-
3023
def generate_plugin_repo_yaml(version: str):
3124
"""Generate the plugin repository YAML file."""
3225
repo_url = "https://github.com/SAP/cf-cli-java-plugin"

.github/workflows/plugin-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Generate plugin repository YAML
3535
env:
3636
GITHUB_REF_NAME: ${{ github.event.release.tag_name }}
37-
run: python3 .github/workflows/generate_plugin_repo.py
37+
run: python3 .github/workflows/generate_plugin_repo.py $GITHUB_REF_NAME
3838

3939
- name: Upload plugin repository files to release
4040
env:

0 commit comments

Comments
 (0)