File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 74
74
75
75
if [ ! -f generated-todos/pdd.xml ]; then
76
76
echo 'pdd.xml has just been created'
77
+ mv pdd.xml generated-todos/pdd.xml
77
78
PUZZLES_FILES_MODIFIED=yes
78
79
elif ! diff --brief generated-todos/pdd.xml pdd.xml >/dev/null; then
79
80
echo 'pdd.xml has been modified'
82
83
83
84
if [ ! -f generated-todos/todos-in-code.tsv ]; then
84
85
echo 'todos-in-code.tsv has just been created'
86
+ mv todos-in-code.tsv generated-todos/todos-in-code.tsv
85
87
PUZZLES_FILES_MODIFIED=yes
86
88
elif ! diff --brief generated-todos/todos-in-code.tsv todos-in-code.tsv >/dev/null; then
87
89
echo 'todos-in-code.tsv has been modified'
@@ -160,11 +162,7 @@ jobs:
160
162
NEW_COMMIT_MSG : " chore: processed ${{ env.COMMIT_MSG }}"
161
163
working-directory : generated-todos
162
164
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"
168
166
git push
169
167
170
168
- name : Commit updated mapping
You can’t perform that action at this time.
0 commit comments