Skip to content

Commit

Permalink
Update pr_validation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami authored Feb 4, 2025
1 parent d4bc967 commit 129280f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pr_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: PR Validation
on:
workflow_dispatch:
pull_request:
branches: [refs/remotes/pull/*/merge]
types: [opened, ready_for_review, synchronize]
branches: [trunk]
types: [opened, ready_for_review]
issue_comment:
types: [created]

Expand All @@ -26,18 +26,25 @@ jobs:
-d '{"body": "'"$COMMENT"'"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
compile-ldmx-sw:
needs: check-comment
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/run-validation'))
runs-on: ubuntu-latest
outputs:
job_matrix: ${{steps.gen-mat.outputs.job_matrix}}
steps:
- name: Print out ref used in checkout
run: |
echo "PR ref: ${{ github.event.issue.pull_request.head.ref }}"
- name: Checkout ldmx-sw
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
ref: ${{ github.event.issue.pull_request.head.ref }}

- name: Install just
uses: extractions/setup-just@v2
Expand Down

0 comments on commit 129280f

Please sign in to comment.