-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (35 loc) · 1.07 KB
/
generateConfiguration.yaml
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 configuration
on:
workflow_dispatch:
schedule:
- cron: 0 23 * * * # Every 07:00 CST
concurrency: generateConfiguration
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
generateConfiguration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
cache: npm
- name: Installing the dependencies
uses: AnnAngela/cached_node-modules@v2
with:
command: npm run ci
- name: Prepare git
run: node scripts/postCommit/prepareGit.js
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
- name: Generate unrecognizable features
run: node scripts/generateUnrecognizableFeatures/index.js
- name: Generate user rights schema
run: node scripts/generateUserRightsSchema/index.js
- name: Show git status & push
run: node scripts/postCommit/push.js