Skip to content

Commit 064b818

Browse files
added check
1 parent 8ac0197 commit 064b818

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

+12
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ jobs:
2424
- name: Check if out.csv exists
2525
run: ls out.csv
2626

27+
- name: Check header in first line
28+
run: |
29+
HEADER="repository name,author name,author login,author email,date and time,changed files,commit id,branch"
30+
FIRST_LINE=$(head -n 1 path/to/your/file.csv)
31+
32+
if [[ "$FIRST_LINE" == "$HEADER"* ]]; then
33+
echo "Header is valid"
34+
else
35+
echo "Header is invalid"
36+
exit 1
37+
fi
38+
2739
- name: Fail if out.csv does not exist
2840
if: failure()
2941
run: exit 1

0 commit comments

Comments
 (0)