aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8529b418..87ccd61c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -130,10 +130,18 @@ jobs:
- uses: actions/checkout@v4
- name: 'Code Coverage'
run: build-scripts/test-coverage
+ - id: set_branch
+ run: |
+ if [ "${{ github.event_name }}" = "push" ]; then
+ echo "override_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
+ else
+ echo "override_branch=" >> $GITHUB_OUTPUT
+ fi
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
+ override_branch: ${{ steps.set_branch.outputs.override_branch }}
QuickJobs:
runs-on: ubuntu-latest
needs: Prebuild