Merge pull request #29 from build-cpp/fix-actions-pr

Fix a bug in the logic to skip building pull requests from the same repo
toml-checker
Duncan Ogilvie 3 years ago committed by GitHub
commit ed84fc0251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
build:
# Skip building pull requests from the same repository
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != '${{ github.repository }}'
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false

Loading…
Cancel
Save