feat: add check before building

This commit is contained in:
Oskar Manhart 2025-05-17 13:59:43 +02:00
parent 5414c19122
commit d39cc8c1c7
3 changed files with 88 additions and 3 deletions

View file

@ -0,0 +1,34 @@
on:
workflow_call:
inputs:
github-repository:
required: true
type: string
pypi-package:
required: true
type: string
pypi-base-url:
required: true
type: string
outputs:
version: ${{ jobs.check-version-exists.outputs.version }}
jobs:
check-version-exists:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.check.outputs.version }}
steps:
- uses: actions/checkout@v4
- id: check
run: |
pip3 install requests
exec python3 check_version_exists.py >> $GITHUB_OUTPUT
env:
REPOSITORY: ${{ inputs.github-repository }}
PACKAGE: ${{ inputs.pypi-package}}
BASE_URL: ${{ inputs.pypi-base-url}}