-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.3 KB
/
generate_report.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
42
43
44
45
46
47
48
49
50
name: Generate report
on:
schedule:
- cron: '0 0 * * SUN'
jobs:
master:
runs-on: ubuntu-latest
steps:
- name: Checkout the current branch
uses: actions/checkout@v4
- name: Install node 14.18 for the rest of the workflow
uses: actions/setup-node@v3
with:
node-version: 14.18
- name: Install node modules
run: yarn install
- name: Generate report name
run: echo "::set-output name=report_name::$(date +%F)"
id: generate_report_name
- name: Checkout community repo
uses: actions/checkout@v4
with:
repository: akeneo/pim-community-dev
path: code/community
- name: Checkout enterprise repo
uses: actions/checkout@v4
with:
repository: akeneo/pim-enterprise-dev
path: code/enterprise
token: ${{ secrets.TOKEN_FOR_ENTERPRISE }}
- name: Generate report
run: yarn report:generate ./code ${{steps.generate_report_name.outputs.report_name}}
- name: Build CRA
run: yarn run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
keep_files: true
exclude_assets: ''