Skip to content

Commit d11daf1

Browse files
sidmohan0claude
andcommitted
fix(ci): resolve YAML syntax errors in GitHub Actions workflows
- Fixed multi-line Python code blocks in beta-release.yml and nightly-release.yml - Converted multi-line Python scripts to single-line commands - Added gliner_research_env/ to .gitignore for research environment exclusion 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9f6f2b2 commit d11daf1

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

.github/workflows/beta-release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,7 @@ jobs:
9595
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
9696
BETA_VERSION="${BASE_VERSION}b1"
9797
else
98-
BASE_VERSION=$(python3 -c "
99-
version = '$CURRENT_VERSION'
100-
parts = version.split('.')
101-
parts[1] = str(int(parts[1]) + 1)
102-
parts[2] = '0'
103-
print('.'.join(parts))
104-
")
98+
BASE_VERSION=$(python3 -c "import sys; version='$CURRENT_VERSION'; parts=version.split('.'); parts[1]=str(int(parts[1])+1); parts[2]='0'; print('.'.join(parts))")
10599
BETA_VERSION="${BASE_VERSION}b1"
106100
fi
107101

.github/workflows/nightly-release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ jobs:
9898
if [[ $CURRENT_VERSION == *"alpha"* ]]; then
9999
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
100100
else
101-
BASE_VERSION=$(python3 -c "
102-
version = '$CURRENT_VERSION'
103-
parts = version.split('.')
104-
parts[1] = str(int(parts[1]) + 1)
105-
parts[2] = '0'
106-
print('.'.join(parts))
107-
")
101+
BASE_VERSION=$(python3 -c "import sys; version='$CURRENT_VERSION'; parts=version.split('.'); parts[1]=str(int(parts[1])+1); parts[2]='0'; print('.'.join(parts))")
108102
fi
109103
110104
ALPHA_VERSION="${BASE_VERSION}a${DATE_STAMP}.${TIME_STAMP}.${COMMIT_SHORT}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ venv/
2828
env/
2929
examples/venv/
3030
benchmark_env/
31+
gliner_research_env/
3132

3233
# Editors
3334
*.swp

0 commit comments

Comments
 (0)