Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

add version number in pyproject.toml #1

add version number in pyproject.toml

add version number in pyproject.toml #1

name: pyproject_version_check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check pypi versions
uses: maybe-hello-world/pyproject-check-version@v3
id: versioncheck
with:
pyproject-path: "./pyproject.toml"
- name: check output
run: |
echo "Output: ${{ steps.versioncheck.outputs.local_version_is_higher }}" # 'true' or 'false
echo "Local version: ${{ steps.versioncheck.outputs.local_version }}" # e.g., 0.1.1
echo "Public version: ${{ steps.versioncheck.outputs.public_version }}" # e.g., 0.1.0