Files
ausboss-ComfyUI-AusBoss/.github/workflows/registry_status.yml
T

42 lines
1.3 KiB
YAML

name: Check Registry approval
on:
workflow_run:
workflows: ["Publish to Comfy registry"]
types: [completed]
workflow_dispatch:
inputs:
version:
description: "Version to check; blank uses pyproject.toml"
required: false
type: string
permissions:
contents: read
jobs:
registry-status:
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.workflow_run.head_sha || github.sha }}
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: "3.12"
# Review happens after upload. Pending/Flagged are a successful status
# report, not approval; a ban, missing version or broken lookup still fails.
- name: Report exact published version's approval state
id: registry
env:
AUSBOSS_TARGET_VERSION: ${{ inputs.version }}
run: |
if [ -n "$AUSBOSS_TARGET_VERSION" ]; then
python scripts/registry_status.py --report --version "$AUSBOSS_TARGET_VERSION"
else
python scripts/registry_status.py --report
fi