pr command action fixes (#8591)

This commit is contained in:
Jake Potrebic
2022-11-23 19:14:41 -08:00
parent 7f4f5f8f3b
commit b6c34550ce
2 changed files with 26 additions and 14 deletions

View File

@@ -16,8 +16,8 @@ on:
jobs:
build:
# Only run on PRs if the source branch is on someone else's repo and the pr is not labeled with `build-pr-jar`
if: github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo
if: (github.event_name == 'pull_request' && github.event.action == 'labeled') || github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name
runs-on: ubuntu-latest
strategy:
matrix: