Simplify workflow expression

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2025-03-31 19:28:35 +02:00
parent 3c3c57d673
commit 6562faa559
No known key found for this signature in database

View file

@ -8,11 +8,7 @@ jobs:
cppcheck:
runs-on: ubuntu-latest
env:
BASE_SHA: >-
${{
github.event_name == 'pull_request' && github.event.pull_request.base.sha ||
github.event_name == 'push' && github.event.push.before
}}
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.push.before }}
steps:
- uses: actions/checkout@v4