Skip to content

Add check-version-against-tag workflow #1

Add check-version-against-tag workflow

Add check-version-against-tag workflow #1

on:

Check failure on line 1 in .github/workflows/check-version-against-tag.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-version-against-tag.yaml

Invalid workflow file

(Line: 16, Col: 9): Unexpected value 'runs', (Line: 16, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
workflow_call:
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
check:
name: Check VERSION file against latest tag
runs-on: ubuntu-latest
steps:
- runs: actions/checkout@v5
- name: Check VERSION file against latest tag
run: |
python -m pip install dunamai
expected_version="$(python -m dunamai from git --format '{base}')"
if [ "$expected_version" != "$(cat VERSION)" ]; then
echo "Expected VERSION file to be \"$expected_version\", got:"
cat VERSION
exit 1
fi