mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
39 lines
775 B
YAML
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
|