Disable concurrency for build workflow #16
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 version | |
on: | |
pull_request: | |
branches: master | |
jobs: | |
check-version: | |
name: Package version updated | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Retrieve new version number | |
id: new-version | |
run: | | |
echo "version=$(python setup.py --version)" >> "$GITHUB_OUTPUT" | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
ref: ${{ github.base_ref }} | |
- name: Retrieve target branch version number | |
id: target-version | |
run: | | |
echo "version=$(python setup.py --version)" >> "$GITHUB_OUTPUT" | |
- name: Compare version numbers | |
env: | |
NEW_VERSION: ${{ steps.new-version.outputs.version }} | |
TARGET_VERSION: ${{ steps.target-version.outputs.version }} | |
run: | | |
! (printf '%s\n' "$NEW_VERSION" "$TARGET_VERSION" | sort -C -V) |