Skip to content

Commit

Permalink
Update trigger-push-stable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BeArchiTek authored Apr 24, 2024
1 parent bef7a80 commit ef3b1ab
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/trigger-push-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ jobs:
- name: Update pyproject.toml and galaxy.yml versions
run: |
VERSION=${{ steps.version.outputs.next-version }}
python -c "\
import toml; \
with open('pyproject.toml', 'r') as file: \
data = toml.load(file); \
data['tool']['poetry']['version'] = '$VERSION'; \
with open('pyproject.toml', 'w') as file: \
toml.dump(data, file)"
python -c """
import toml
with open('pyproject.toml', 'r') as file:
data = toml.load(file)
data['tool']['poetry']['version'] = '$VERSION'
with open('pyproject.toml', 'w') as file:
toml.dump(data, file)
"""
sed -i "s/^version:.*/version: $VERSION/" galaxy.yml
- name: Update lock file
Expand Down

0 comments on commit ef3b1ab

Please sign in to comment.