pantry/.github/workflows/indexer.yml
2023-10-31 15:16:49 -04:00

39 lines
775 B
YAML

name: indexer
on:
pull_request:
paths:
- .github/scripts/utils/indexer.ts
- .github/workflows/indexer.yml
push:
branches: main
paths:
- projects/**/package.yml
- .github/scripts/utils/indexer.ts
- .github/workflows/indexer.yml
concurrency:
group: indexer/${{ github.ref || 'main' }}
cancel-in-progress: true
permissions:
contents: write
jobs:
new-pkgs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pkgxdev/setup@v2
with:
+: deno
- run: mkdir out
- run: deno run -A .github/scripts/utils/indexer.ts > out/pkgs.json
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: out