-
Notifications
You must be signed in to change notification settings - Fork 315
32 lines (25 loc) · 951 Bytes
/
wizard-templates.yml
File metadata and controls
32 lines (25 loc) · 951 Bytes
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
name: Generate Wizard Templates
on:
schedule:
- cron: '30 9 * * *'
jobs:
wizard-templates:
strategy:
matrix:
framework: ['angular', 'react', 'vue']
template: ['list', 'tabs', 'sidemenu']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ionic CLI
run: npm install -g @ionic/cli
- name: Run ionic start
run: ionic start __NAME__ ${{ matrix.template }} --type=${{ matrix.framework }} --capacitor --no-link --no-interactive --no-color --confirm
- name: Run git push
run: |
git config user.email hi@ionicframework.com
git config user.name Ionitron
git add __NAME__
git commit -m 'Initial commit'
git subtree split -P __NAME__ -b wizard/${{ matrix.framework }}-official-${{ matrix.template }}
git push -f origin wizard/${{ matrix.framework }}-official-${{ matrix.template }}