forked from mirrors/kingfisher
fixed github actions
This commit is contained in:
parent
af66acd18d
commit
5b51aa941d
2 changed files with 3 additions and 11 deletions
13
.github/workflows/pypi.yml
vendored
13
.github/workflows/pypi.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
|
@ -424,7 +424,6 @@ jobs:
|
|||
uses: ./.github/workflows/pypi.yml
|
||||
with:
|
||||
tag: ${{ needs.release.outputs.tag }}
|
||||
secrets: inherit
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue