Generate report #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '' |