Skip to content

Commit

Permalink
Merge pull request #40 from aecelaya/main
Browse files Browse the repository at this point in the history
Minor bug fix in docker-publish.yml.
  • Loading branch information
aecelaya authored Sep 20, 2024
2 parents 2a45cc5 + 1bcacdd commit cbd35a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Extract and transform version from pyproject.toml
id: extract_version
run: |
VERSION=$(grep -m1 -Po '(?<=version\s?=\s?")[^"]*' pyproject.toml)
VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
# Replace "-alpha" with "a0", "-beta" with "b0", and so on
DOCKER_VERSION=$(echo $VERSION | sed 's/-alpha/a0/' | sed 's/-beta/b0/' | sed 's/-rc/rc0/')
echo "DOCKER_VERSION=$DOCKER_VERSION" >> $GITHUB_ENV
Expand Down

0 comments on commit cbd35a5

Please sign in to comment.