File tree 1 file changed +22
-11
lines changed
1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : Build template
2
2
on :
3
3
workflow_dispatch :
4
+ schedule :
5
+ - cron : " 0 0 * * *"
4
6
push :
5
7
branches :
6
8
- main
@@ -65,17 +67,26 @@ jobs:
65
67
- name : Create library
66
68
run : |
67
69
rm -rf ${{ env.work_dir }} # Workaround for tests failing intermittently
68
- ./packages/create-react-native-library/bin/create-react-native-library ${{ env.work_dir }} \
69
- --slug @bob/react-native-test \
70
- --description test \
71
- --author-name test \
72
- --author-email test@test \
73
- --author-url https://test.test \
74
- --repo-url https://test.test \
75
- --type ${{ matrix.type.name }} \
76
- --languages ${{ matrix.type.language }} \
77
- --example ${{ matrix.type.language == 'js' && 'expo' || 'vanilla' }} \
78
- --no-local
70
+
71
+ args=(
72
+ --slug @bob/react-native-test
73
+ --description test
74
+ --author-name test
75
+ --author-email test@test
76
+ --author-url https://test.test
77
+ --repo-url https://test.test
78
+ --type ${{ matrix.type.name }}
79
+ --languages ${{ matrix.type.language }}
80
+ --example ${{ matrix.type.language == 'js' && 'expo' || 'vanilla' }}
81
+ )
82
+
83
+ if [[ ${{ github.event_name }} == 'schedule' ]]; then
84
+ args+=(
85
+ --react-native-version latest
86
+ )
87
+ fi
88
+
89
+ ./packages/create-react-native-library/bin/create-react-native-library ${{ env.work_dir }} ${args[@]}
79
90
80
91
- name : Restore dependencies of library
81
92
id : library-yarn-cache
You can’t perform that action at this time.
0 commit comments