Files
nanobot/.github/workflows/trigger-pypi.yml
T

23 lines
692 B
YAML

name: Validate published release for PyPI
on:
release:
types: [published]
permissions: {}
jobs:
release:
if: github.repository == 'HKUDS/nanobot' && !github.event.release.prerelease
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Validate the stable release tag
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
shell: bash
run: |
set -euo pipefail
[[ "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo 'Expected a final vX.Y.Z tag.' >&2; exit 1; }
echo 'The main-branch publisher will match the release to its accepted candidate before uploading.' >> "$GITHUB_STEP_SUMMARY"