Skip to content

Commit e9b25da

Browse files
committed
update readme
1 parent a8ef62f commit e9b25da

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/UpdateReadmeOnPush.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
python-version: '3.12'
2323

2424
- name: Check File Names
25+
env:
26+
CHANGED_FILES: $(git diff --name-only HEAD~1 HEAD)
2527
run: |
26-
changed_files=$(git diff --name-only HEAD~1 HEAD)
27-
echo ${{ changed_files }}
28-
for file in $changed_files; do
28+
echo "$CHANGED_FILES"
29+
for file in $CHANGED_FILES; do
30+
echo "$file"
2931
if [[ ! ($file =~ ^\d+[A-Z]\.(cpp|py)$) ]]; then
3032
echo "Error: File '$file' does not match allowed pattern"
3133
exit 1

0 commit comments

Comments
 (0)