Skip to content

Commit

Permalink
πŸ”€ Merge pull request #14 from jyje/develop
Browse files Browse the repository at this point in the history
πŸ”§ ci/release: extract tag from requirements.txt (fix, --no-ci)
  • Loading branch information
jyje authored Sep 7, 2024
2 parents 1adb585 + 26d3b95 commit 671c4bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:

- name: Extract tag name
run: |
cat requirements.txt | grep -oP '==\K[0-9]+\.[0-9]+\.[0-9]+' > tag.txt
echo "image_version=v$(cat tag.txt)" >> $GITHUB_ENV
echo "image_version=v$(cat requirements.txt | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')" >> $GITHUB_ENV
TAG_NAME="${{ env.image_version }}"
if ! [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]; then
echo "Tag $TAG_NAME does not meet the required format 'vX.Y.Z'."
Expand Down

0 comments on commit 671c4bd

Please sign in to comment.