Skip to content

Commit

Permalink
fix: coverage on schedule should analyze main branch (#5600)
Browse files Browse the repository at this point in the history
sets branch to main in case of scheduled run and takes branch from github env in case of a PR/push run
  • Loading branch information
tmerten authored Feb 6, 2025
1 parent 608bd49 commit bea6910
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
# See:
# https://github.com/tiobe/tics-github-action?tab=readme-ov-file#tics-github-action
mode: ${{ github.event_name == 'pull_request' && 'client' || 'qserver' }}
# In case of a scheduled run, we want TiCS to analyze main,
# otherwise the ref (branch/tag) we just pushed to
branchname: ${{ github.event_name == 'schedule' && 'main' || github.ref_name }}
project: maas-ui
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
Expand Down

0 comments on commit bea6910

Please sign in to comment.