Conversation
Codecov Report
@@ Coverage Diff @@
## main #31 +/- ##
=======================================
Coverage 93.33% 93.33%
=======================================
Files 4 4
Lines 15 15
Branches 1 1
=======================================
Hits 14 14
Misses 1 1
Continue to review full report at Codecov.
|
Disable `pr` env in `main` branch (#31)
| # workaround to ignore 'pr' when merging to main | ||
| # see: https://github.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6 | ||
| isMerge: | ||
| - ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} |
There was a problem hiding this comment.
For anyone reaching this PR trying to make the exclusion work with a boolean input, called useBeta for example, (workflow_dispatch) I had to use ${{ inputs.useBeta }} instead of ${{ github.event.inputs.useBeta }}. I think it is because inputs maintains the boolean whilst github.events.inputs converts it to string: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#providing-inputs
By the way, very useful example here, thanks!
Solution found here: post https://github.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6