Skip to content

Commit dc6b011

Browse files
committed
build: fix scanner output redirection and add artifact upload
1 parent 7b8f3c3 commit dc6b011

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/version_scanner.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ jobs:
3232
3333
- name: Run Version Scanner
3434
run: |
35-
# We pipe the output to a file so we can read it in the next step
36-
python scripts/version_scanner/version_scanner.py -d python -v 3.7 --stdout > scanner_output.csv
35+
# Use -o to output the raw CSV to a file, and --stdout to print the summary to the GitHub Actions UI
36+
python scripts/version_scanner/version_scanner.py -d python -v 3.7 --stdout -o scanner_output.csv
37+
38+
- name: Upload CSV Results
39+
if: always()
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: version-scanner-results
43+
path: scanner_output.csv
3744

3845
- name: Create or update issue on finding
3946
if: failure()

0 commit comments

Comments
 (0)