fixed github actions

This commit is contained in:
Mick Grove 2026-03-28 12:09:28 -07:00
commit 5b51aa941d
2 changed files with 3 additions and 11 deletions

View file

@ -1,8 +1,6 @@
name: pypi-wheels
on:
release:
types: [published]
workflow_call:
inputs:
tag:
@ -31,18 +29,13 @@ jobs:
shell: bash
env:
INPUT_TAG: ${{ inputs.tag || github.event.inputs.tag || '' }}
RELEASE_TAG_NAME: ${{ github.event.release.tag_name || '' }}
run: |
set -euo pipefail
if [[ -n "${INPUT_TAG}" ]]; then
# workflow_call or workflow_dispatch with explicit tag
TAG="${INPUT_TAG}"
elif [[ "${GITHUB_EVENT_NAME}" == "release" && -n "${RELEASE_TAG_NAME}" ]]; then
TAG="${RELEASE_TAG_NAME}"
else
echo "No tag provided and not a release event — cannot determine version" >&2
if [[ -z "${INPUT_TAG}" ]]; then
echo "No tag provided — cannot determine version" >&2
exit 1
fi
TAG="${INPUT_TAG}"
if [[ ! "${TAG}" =~ ^v[0-9A-Za-z._+-]+$ ]]; then
echo "Invalid tag format: ${TAG}" >&2
exit 1

View file

@ -424,7 +424,6 @@ jobs:
uses: ./.github/workflows/pypi.yml
with:
tag: ${{ needs.release.outputs.tag }}
secrets: inherit
permissions:
contents: read
id-token: write