Skip to content

Commit

Permalink
[CI] Let sycl-devops-pr/** branches trigger pre/post-commit (#10002)
Browse files Browse the repository at this point in the history
In #9950 I envisioned a setup when there will be a dedicated devops
pre-commit task that would create fake branch/PR in the repository to
verify changes affecting CI. I later realized that we can just push the
source branch for such a PR directly to origin and use that for testing.

As such, rename which branch is allowed to trigger post-commit and allow
the same for pre-commit. Future changes are expected to be done like
this:
  - create branch `sycl-devops-pr/<name>` in *intel*/llvm repo, it will
    run post-commit testing.
  - create PR out of that branch
  - create an extra draft PR with a target branch set to the same
    `sycl-devops-pr/<name>`, that will run pre-commit testing.
  • Loading branch information
aelovikov-intel authored Jun 21, 2023
1 parent ba1fc2e commit ed392bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sycl_post_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- sycl
- test-devops-pr/**
- sycl-devops-pr/**

jobs:
# This job generates matrix of tests for SYCL End-to-End tests
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sycl_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request_target:
branches:
- sycl
- sycl-devops-pr/**
# Do not run builds if changes are only in the following locations
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
Expand Down

0 comments on commit ed392bf

Please sign in to comment.