-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 955 Bytes
/
index.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Generate Index
on:
push:
paths:
- "stacks/**"
- "pkgmanagers/**"
workflow_dispatch:
jobs:
combine:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Combine Stacks and Package Managers
run: deno run -RW scripts/combine.ts
- name: Create Atom Feed
run: deno run -RW scripts/feed.ts
- name: Commit and push
if: github.repository == 'vanilla-os/apx-community' && github.ref == 'refs/heads/main'
continue-on-error: true
run: |
git config user.name github-actions
git config user.email [email protected]
git add _index.json feed.xml
git commit -m "chore: new index"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}