-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 1.01 KB
/
licences.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
name: Generate licences
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Runs everyday at 00:00
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: |
yarn
- name: Generate licences
env:
TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
node scripts/licences.js
git add generated/
- name: Commit and push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.ROBOT_TOKEN }}
branch: staging
author_email: dothq-robot@users.noreply.github.com
author_name: dothq-robot
message: "📄 Generate licence page data"