0.0.2 (#2) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quarkiverse Pre Release | |
on: | |
pull_request: | |
paths: | |
- '.github/project.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: pre release | |
steps: | |
- uses: radcortez/project-metadata-action@master | |
name: retrieve project metadata | |
id: metadata | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
metadata-file-path: '.github/project.yml' | |
- name: Validate version | |
if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT') | |
run: | | |
echo '::error::Cannot release a SNAPSHOT version.' | |
exit 1 |