@@ -129,10 +129,8 @@ jobs:
129
129
- name : Remove everything
130
130
run : for i in $(ls) ; do rm -rf "$i"; done;
131
131
132
- - name : Checkout
133
- # uses: checkout
134
- run : |
135
- git init
132
+ - name : Create new empty repo
133
+ run : git init
136
134
137
135
- name : Initiate diffs
138
136
id : create-diffs
@@ -141,9 +139,9 @@ jobs:
141
139
source ../configMatrix/configMatrix.sh
142
140
143
141
output_path="../outputs"
144
-
145
142
mkdir -p "$output_path"
146
143
144
+ # Set author
147
145
git config --global user.email "text@test.com"
148
146
git config --global user.name "Github actions test"
149
147
@@ -225,7 +223,7 @@ jobs:
225
223
echo "DIFF_IS_NON_EMPTY=0" >> $GITHUB_OUTPUT
226
224
fi
227
225
228
- # Remove outputs if it exists
226
+ # Remove outputs folder in cwd if it exists
229
227
rm -rf ./outputs || true
230
228
231
229
# Copy the outputs to cwd
@@ -285,13 +283,13 @@ jobs:
285
283
const parsedArtifacts = fs.readdirSync('./outputs').map(fileName => {
286
284
const [type, language] = fileName.split("+");
287
285
288
- const header = Object.entries(replaceTable).reduce((acc, [key, value]) => {
286
+ const title = Object.entries(replaceTable).reduce((acc, [key, value]) => {
289
287
return acc.replace(new RegExp(key, "g"), value);
290
288
}, `${language} ${type}`);
291
289
292
290
const fileContents = fs.readFileSync(`./outputs/${fileName}`, 'utf8');
293
291
294
- return `<details><summary>${header }</summary>\n\n\`\`\`diff\n${fileContents}\n\`\`\`\n</details>\n\n`;
292
+ return `<details><summary>${title }</summary>\n\n\`\`\`diff\n${fileContents}\n\`\`\`\n</details>\n\n`;
295
293
})
296
294
297
295
const body = `🤓☝️ This PR changes the output of \`create-react-native-library\`. You can find the diffs of effected templates below:
0 commit comments