-
-
Notifications
You must be signed in to change notification settings - Fork 148
41 lines (34 loc) · 1.04 KB
/
generate.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
40
41
name: Generate Health Files
on:
workflow_dispatch:
push:
paths:
- "src/**/*"
env:
DENO_DIR: deno_cache
jobs:
generate-health-files:
runs-on: ubuntu-latest
name: Re-generate README, CODEOWNERS, pr-labeler.yml & issue-labeler.yml
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.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('src/generate/deno.lock') }}
path: ${{ env.DENO_DIR }}
- name: Update README, CODEOWNERS, pr-labeler.yml & issue-labeler.yml
working-directory: src/generate
run: ./generate.ts
- name: Push Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: README, CODEOWNERS & labeler.yml"
branch: ${{ github.ref }}
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json