2023-01-29 20:54:12 +00:00
|
|
|
name: Generate READMEs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-01-30 07:27:32 +00:00
|
|
|
paths:
|
|
|
|
- "resources/**"
|
2023-01-29 20:54:12 +00:00
|
|
|
pull_request:
|
2023-01-30 07:27:32 +00:00
|
|
|
paths:
|
|
|
|
- "resources/**"
|
2023-01-29 20:54:12 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
DENO_DIR: deno_cache
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-01-30 07:27:32 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-01-29 20:54:12 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: Set up Deno
|
|
|
|
uses: denoland/setup-deno@v1
|
|
|
|
with:
|
|
|
|
deno-version: v1.x
|
|
|
|
- name: Cache Deno dependencies
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
key: ${{ hashFiles('resources/generate/deno.lock') }}
|
|
|
|
path: ${{ env.DENO_DIR }}
|
|
|
|
- name: Update READMEs
|
|
|
|
working-directory: resources/generate
|
|
|
|
run: ./main.ts
|
|
|
|
- name: Push changes
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
with:
|
|
|
|
commit_message: "chore: re-generate README sections"
|
2023-01-30 07:27:32 +00:00
|
|
|
branch: ${{ github.head_ref }}
|
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|