Skip to content

Commit

Permalink
Merge pull request #4 from ewanharris/generate-and-own-api
Browse files Browse the repository at this point in the history
Generate local data file and serve via API
  • Loading branch information
cb1kenobi authored Mar 12, 2023
2 parents 3265a0e + fd51b60 commit f0cbfb9
Show file tree
Hide file tree
Showing 12 changed files with 1,913 additions and 37 deletions.
9 changes: 4 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": [
"sznm/react",
"plugin:react/jsx-runtime",
"plugin:@next/next/recommended"
]
"extends": [
"sznm/bare",
"plugin:@next/next/recommended"
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: 'Regen Builds'
name: 'Regen Data'

on:
workflow_dispatch:
repository_dispatch:
types: [ regen-builds ]

jobs:
regen:
Expand All @@ -19,11 +17,17 @@ jobs:
- name: Checkout titanium-builds
uses: actions/checkout@v3

- name: Retrieve the builds
uses: tidev/titanium-builds-regen-action@v1
- uses: actions/setup-node@v3
with:
output-dir: 'public/registry'
repo-token: ${{ secrets.GITHUB_TOKEN }}
node-version: '18.x'

- name: Install dependencies
run: yarn

- name: Generate data
run: node scripts/generate.mjs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit changes
id: committed
Expand Down
Loading

0 comments on commit f0cbfb9

Please sign in to comment.