Skip to content

Commit 24c4bfd

Browse files
committed
fix: gh-script syntax error
1 parent 087394b commit 24c4bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/lab-autograding.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
const changedFiles = files.data.map((file) => file.filename);
4747
const allowedFileRegex = /^lab\d+\/main_test.js$/;
4848
const specialChangedFiles = ["lab5/Answer.md", "lab5/antiasan.c"];
49-
if (!changedFiles.every((file) => (allowedFileRegex.test(file) || specialChangedFiles.includes(file))) {
49+
if (!changedFiles.every((file) => (allowedFileRegex.test(file) || specialChangedFiles.includes(file)))) {
5050
core.setFailed('The PR contains changes to files other than the allowed files.');
5151
}
5252
return labNumber;

0 commit comments

Comments
 (0)