File tree Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 11name : Build template
22on :
33 workflow_dispatch :
4+ schedule :
5+ - cron : " 0 0 * * *"
46 push :
57 branches :
68 - main
@@ -65,17 +67,26 @@ jobs:
6567 - name : Create library
6668 run : |
6769 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[@]}
7990
8091 - name : Restore dependencies of library
8192 id : library-yarn-cache
You can’t perform that action at this time.
0 commit comments