From 5b51aa941d351867d2da923e58daa64713b5637d Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Sat, 28 Mar 2026 12:09:28 -0700 Subject: [PATCH] fixed github actions --- .github/workflows/pypi.yml | 13 +++---------- .github/workflows/release.yml | 1 - 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 2da656c..5b36a0d 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8851fa4..8ea626f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -424,7 +424,6 @@ jobs: uses: ./.github/workflows/pypi.yml with: tag: ${{ needs.release.outputs.tag }} - secrets: inherit permissions: contents: read id-token: write