feat: add check before building
This commit is contained in:
parent
5414c19122
commit
d39cc8c1c7
3 changed files with 88 additions and 3 deletions
34
.forgejo/workflows/check_version_exists.yaml
Normal file
34
.forgejo/workflows/check_version_exists.yaml
Normal 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}}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue