|
9 | 9 | jobs:
|
10 | 10 | smoke-test:
|
11 | 11 | strategy:
|
| 12 | + fail-fast: false |
12 | 13 | matrix:
|
13 | 14 | args:
|
14 | 15 | - "--invites"
|
@@ -54,12 +55,41 @@ jobs:
|
54 | 55 |
|
55 | 56 | - name: Check header in first line
|
56 | 57 | run: |
|
57 |
| - HEADER="repository name,author name,author login,author email,date and time,changed files,commit id,branch" |
| 58 | + case "${{ matrix.args }}" in |
| 59 | + --invites) |
| 60 | + HEADER="repository name,invited login,invite creation date,invitation url" |
| 61 | + ;; |
| 62 | + --commits) |
| 63 | + HEADER="repository name,author name,author login,author email,date and time,changed files,commit id,branch" |
| 64 | + ;; |
| 65 | + --pull_requests) |
| 66 | + HEADER="repository name,title,id,state,commit into,commit from,created at,creator name,creator login,creator email,changed files,comment body,comment created at,comment author name,comment author login,comment author email,merger name,merger login,merger email,source branch,target branch,assignee story,related issues,labels,milestone" |
| 67 | + ;; |
| 68 | + --issues) |
| 69 | + HEADER="repository name,number,title,state,task,created at,creator name,creator login,creator email,closer name,closer login,closer email,closed at,comment body,comment created at,comment author name,comment author login,comment author email,assignee story,connected pull requests,labels,milestone" |
| 70 | + ;; |
| 71 | + --wikis) |
| 72 | + HEADER="repository name,author name,author login,datetime,page,action,revision id,added lines,deleted lines" |
| 73 | + ;; |
| 74 | + --contributors) |
| 75 | + HEADER="repository name,contributor login,number of commits,additions,deletions,branch" |
| 76 | + ;; |
| 77 | + --workflow_runs) |
| 78 | + HEADER="repository name,workflow name,run id,status,conclusion,author login,author email,date and time,url,branch" |
| 79 | + ;; |
| 80 | + *) |
| 81 | + echo "Unknown ARG: '${{ matrix.args }}'" |
| 82 | + exit 1 |
| 83 | + ;; |
| 84 | + esac |
| 85 | +
|
58 | 86 | FIRST_LINE=$(head -n 1 out.csv)
|
59 | 87 |
|
60 | 88 | if [[ "$FIRST_LINE" == "$HEADER"* ]]; then
|
61 |
| - echo "Header is valid" |
| 89 | + echo "Header is valid for ${{ matrix.args }}" |
62 | 90 | else
|
63 |
| - echo "Header is invalid" |
| 91 | + echo "::error::Header is invalid for ${{ matrix.args }}" |
| 92 | + echo "Expected: $HEADER" |
| 93 | + echo "Actual: $FIRST_LINE" |
64 | 94 | exit 1
|
65 | 95 | fi
|
0 commit comments