Skip to content

Commit 15b15f3

Browse files
added check
1 parent 8ac0197 commit 15b15f3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ jobs:
2828
if: failure()
2929
run: exit 1
3030

31+
- name: Check header in first line
32+
run: |
33+
HEADER="repository name,author name,author login,author email,date and time,changed files,commit id,branch"
34+
FIRST_LINE=$(head -n 1 out.csv)
35+
36+
if [[ "$FIRST_LINE" == "$HEADER"* ]]; then
37+
echo "Header is valid"
38+
else
39+
echo "Header is invalid"
40+
exit 1
41+
fi
42+
3143
- name: Upload test results
3244
uses: actions/upload-artifact@v4
3345
with:

0 commit comments

Comments
 (0)