Skip to content

Commit

Permalink
Fix the preflight-summary.yml workflow (#17)
Browse files Browse the repository at this point in the history
https://github.com/marketplace/actions/code-coverage-summary v1.3.0
generates code-coverage-results.md owned by root and
`touch code-coverage-results.md` failed with the "Permission denied"
error.

Resolves: AlmaLinux/build-system/issues/281
  • Loading branch information
isudak authored May 22, 2024
1 parent 69f976a commit 1d3dd3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/preflight-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:

- name: Generate Preflight Summary
run: |
touch test-summary.md code-coverage-results.md
{
if [[ -s test-summary.md ]]; then
cat test-summary.md
Expand All @@ -67,7 +65,7 @@ jobs:
printf "\n### Linter reports\n"
# Max size of comments on GitHub is 64KB. Don't post reports if they don't fit.
if awk '{sum += $1} END {exit sum > (62*1024)}' \
<<< $(stat --format=%s test-summary.md code-coverage-results.md linter-reports.md)
<<< $(stat --format=%s test-summary.md code-coverage-results.md linter-reports.md 2>/dev/null)
then
cat linter-reports.md
else
Expand Down

0 comments on commit 1d3dd3e

Please sign in to comment.