Skip to content

Commit a1bffa5

Browse files
committed
chore: fix the case when connect-todos-to-issues.sh doesn't see newly added puzzles as it looked to the old file
Correction for d40f5ac commit. Part of #1610
1 parent dca86bf commit a1bffa5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/todos-extract-from-code.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
7575
if [ ! -f generated-todos/pdd.xml ]; then
7676
echo 'pdd.xml has just been created'
77+
mv pdd.xml generated-todos/pdd.xml
7778
PUZZLES_FILES_MODIFIED=yes
7879
elif ! diff --brief generated-todos/pdd.xml pdd.xml >/dev/null; then
7980
echo 'pdd.xml has been modified'
@@ -82,6 +83,7 @@ jobs:
8283
8384
if [ ! -f generated-todos/todos-in-code.tsv ]; then
8485
echo 'todos-in-code.tsv has just been created'
86+
mv todos-in-code.tsv generated-todos/todos-in-code.tsv
8587
PUZZLES_FILES_MODIFIED=yes
8688
elif ! diff --brief generated-todos/todos-in-code.tsv todos-in-code.tsv >/dev/null; then
8789
echo 'todos-in-code.tsv has been modified'
@@ -160,11 +162,7 @@ jobs:
160162
NEW_COMMIT_MSG: "chore: processed ${{ env.COMMIT_MSG }}"
161163
working-directory: generated-todos
162164
run: |
163-
for FILE in pdd.xml todos-in-code.tsv; do
164-
mv -f ../$FILE .
165-
git add $FILE
166-
done
167-
git commit --all -m "$NEW_COMMIT_MSG"
165+
git commit pdd.xml todos-in-code.tsv -m "$NEW_COMMIT_MSG"
168166
git push
169167
170168
- name: Commit updated mapping

0 commit comments

Comments
 (0)