Skip to content

ci: add scheduled marketplace listing-check workflow (#6) #1

ci: add scheduled marketplace listing-check workflow (#6)

ci: add scheduled marketplace listing-check workflow (#6) #1

Workflow file for this run

name: Listings
on:
schedule:
- cron: "0 9 * * 1" # Mondays 09:00 UTC
workflow_dispatch:
push:
branches: [main]
paths:
- "scripts/check_listings_api.py"
- "scripts/listing_catalog.py"
- ".github/workflows/listings.yml"
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
name: marketplace listing check (HTTP)
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.12"
- name: Probe marketplaces (HTTP-only, no browser)
timeout-minutes: 10
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
mkdir -p dist
set +e
python scripts/check_listings_api.py \
--strict --report dist/listings-api.md --json > dist/listings-api.json
status=$?
{
echo "## Marketplace listing status (HTTP probe)"
echo
if [[ -f dist/listings-api.md ]]; then
cat dist/listings-api.md
else
echo "Probe did not produce a report."
fi
} >> "$GITHUB_STEP_SUMMARY"
exit "$status"
- name: Upload report
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: listings-report
if-no-files-found: warn
path: |
dist/listings-api.md
dist/listings-api.json