Skip to content

Commit

Permalink
ci: workflows: test-and-deploy: Add tag validation with VERSION file
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jun 3, 2024
1 parent 4270087 commit 238ab13
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ on:
- cron: '0 0 */6 * *'

jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: Check tag with VERSION file
run: |
VERSION_TAG="$(git describe --tags --abbrev=0)"
echo "Version tag: $VERSION_TAG"
echo "Checking if VERSION file is updated.."
[[ "$(cat ./core/VERSION)" == "$(echo "$VERSION" | cut -d. -f1-2)" ]]
python-tests:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -78,7 +88,7 @@ jobs:

deploy-docker-images:
runs-on: ubuntu-latest
needs: [python-tests, frontend-tests]
needs: [python-tests, frontend-tests, "check-version"]
strategy:
matrix:
docker: [bootstrap, core]
Expand Down

0 comments on commit 238ab13

Please sign in to comment.