ci: move branch name to env var (#104633)

* ci: move branch name to env var

* quoting
This commit is contained in:
Sven Grossmann
2025-04-28 15:11:49 +02:00
committed by GitHub
parent a8ea72012b
commit ab25b911ac
2 changed files with 6 additions and 3 deletions
@@ -28,11 +28,13 @@ runs:
steps:
- name: Process Go coverage output
shell: bash
env:
COVERAGE_FILE: ${{ inputs.coverage-file }}
run: |
# Ensure valid coverage file even if empty
if [ ! -s ${{ inputs.coverage-file }} ]; then
if [ ! -s "$COVERAGE_FILE" ]; then
echo "Coverage file is empty, creating a minimal valid file"
echo "mode: set" > ${{ inputs.coverage-file }}
echo "mode: set" > "$COVERAGE_FILE"
fi
- name: Report coverage to CodeCov