pantry/.github/workflows/indexer.yml

40 lines
775 B
YAML
Raw Normal View History

2023-10-31 22:16:49 +03:00
name: indexer
2023-10-31 13:30:26 +03:00
on:
2023-10-31 22:16:49 +03:00
pull_request:
paths:
- .github/scripts/utils/indexer.ts
- .github/workflows/indexer.yml
2023-10-31 13:30:26 +03:00
push:
branches: main
2023-10-31 20:08:54 +03:00
paths:
- projects/**/package.yml
- .github/scripts/utils/indexer.ts
- .github/workflows/indexer.yml
2023-10-31 13:30:26 +03:00
concurrency:
2023-10-31 22:16:49 +03:00
group: indexer/${{ github.ref || 'main' }}
2023-10-31 13:30:26 +03:00
cancel-in-progress: true
2023-10-31 22:16:49 +03:00
permissions:
contents: write
2023-10-31 13:30:26 +03:00
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
2023-10-31 20:11:38 +03:00
- run: deno run -A .github/scripts/utils/indexer.ts > out/pkgs.json
2023-10-31 13:30:26 +03:00
2023-10-31 17:40:55 +03:00
- uses: JamesIves/github-pages-deploy-action@v4
2023-10-31 13:30:26 +03:00
with:
folder: out