storybook/.github/workflows/generate-repros.yml
Norbert de Langen 113e0582d2
Merge branch 'next' into future/move-code-into-directory
# Conflicts:
#	.vscode/launch.json
#	CONTRIBUTING.old.md
#	code/lib/cli/tsconfig.json
#	scripts/tsconfig.json
2022-07-26 08:33:57 +02:00

31 lines
1.0 KiB
YAML

name: Generate And Push Repros
on:
schedule:
- cron: '2 2 */1 * *'
workflow_dispatch:
# To remove when the branch will be merged
push:
branches:
- generate-repros
jobs:
update:
runs-on: ubuntu-latest
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
steps:
- uses: actions/checkout@v2
- name: Setup git user
run: |
git config --global user.name "Storybook Bot"
git config --global user.email "bot@storybook.js.org"
- name: Change directory
run: cd code
- name: Install dependencies
run: yarn install
- name: Generate repros with Latest Storybook CLI
run: yarn generate-repros --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT}}@github.com/storybookjs/repro-templates.git --push --force-push
- name: Generate repros with Next Storybook CLI
run: yarn generate-repros --next --remote=https://storybook-bot:${{ secrets.PAT_STORYBOOK_BOT}}@github.com/storybookjs/repro-templates.git --push --force-push