Skip to content

Add difficulty calculation #27

Add difficulty calculation

Add difficulty calculation #27

Workflow file for this run

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)