quarkus-commons/.github/workflows/validate-versions.yaml
Renovate Bot ffcc764133
All checks were successful
Build / build (pull_request) Successful in 1m57s
Build / build (push) Successful in 2m48s
ci(github-action)!: Update https://github.com/actions/checkout action to v5 (renovate)
2025-10-10 08:19:18 +00:00

33 lines
No EOL
899 B
YAML

name: Validate release versions
on:
pull_request:
paths:
- '.github/project.yaml'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: https://github.com/actions/checkout@v5
- name: Retrieve project metadata
uses: https://github.com/radcortez/project-metadata-action@main
id: metadata
with:
metadata-file-path: '.github/project.yaml'
local-file: true
- name: Validate current version
if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT')
run: |
echo '::error::Cannot release a SNAPSHOT version.'
exit 1
- name: Validate next version
if: contains(steps.metadata.outputs.next-version, 'SNAPSHOT') == false
run: |
echo '::error::Next development version should be a SNAPSHOT version.'
exit 1