Skip to content

Commit

Permalink
Merge pull request #7 from lampajr/fix_publish_workflow
Browse files Browse the repository at this point in the history
Fix publish workflow
  • Loading branch information
lampajr authored Mar 27, 2024
2 parents 5c76e0e + c4680cc commit e878850
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Check version coherence
run: |
PROJECT_VERSION=$(poetry version | cut -d' ' -f2)
GIT_TAG=$(git describe --tags --match="v*")
if [[ "${GIT_TAG:1}" =~ $PROJECT_VERSION ]]; then
echo "::error title='$GIT_TAG tag does not match project version'::"
exit 1
fi
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -44,6 +36,14 @@ jobs:
run: |
pip install --constraint=./dev-constraints.txt nox nox-poetry
nox --version
- name: Check version coherence
run: |
PROJECT_VERSION=$(poetry version | cut -d' ' -f2)
GIT_TAG=$(git describe --tags --match="v*")
if [[ "${GIT_TAG:1}" =~ $PROJECT_VERSION ]]; then
echo "::error title='$GIT_TAG tag does not match project version'::"
exit 1
fi
- name: Generate horreum client
# HORREUM_BRANCH must be properly set to the Horreum branch you want to fetch the openapi
run: make generate
Expand Down

0 comments on commit e878850

Please sign in to comment.