chore(deps): Bump mkdocs-material from 9.5.9 to 9.5.10 #195
Workflow file for this run
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: Check release condition | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
release-candidate: | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.pull_request.title, 'release') | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Dump version | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
id: release | |
run: | | |
echo $PR_TITLE | grep -E "release:? v[0-9\-\.]*" || exit 1 | |
VERSION=$(echo $PR_TITLE | sed -E 's/.* (v[0-9\-\.]*)/\1/g') | |
echo $VERSION | |
echo ::set-output name=version::$VERSION | |
- name: Dump poetry version | |
id: poetry | |
run: | | |
VERSION=$(grep version pyproject.toml | sed -E 's/.* "([0-9\-\.]*)"/v\1/g') | |
echo $VERSION | |
echo ::set-output name=version::$VERSION | |
- name: Check version | |
run: | | |
if [[ "${{ steps.release.outputs.version }}" == "${{ steps.poetry.outputs.version }}" ]]; then | |
echo "VERSION MATCH" | |
else | |
echo "VERSION MISMATCH" | |
exit 1 | |
fi | |
- name: Check CHANGELOG | |
run: | | |
if [[ $(grep "${{ steps.release.outputs.version }}" CHANGELOG.md) == "" ]]; then | |
echo "VERSION MISMATCH" | |
exit 1 | |
fi |