-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run CI with PR sources * Add CI branch to the pull_request_target --------- Co-authored-by: Julien <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- "!.github/**" | ||
branches: ["ci"] | ||
pull_request_target: | ||
branches: ["master"] | ||
branches: ["master", "ci"] | ||
paths: | ||
- "**/*" | ||
- "!.github/**" # Important: Exclude PRs related to .github from auto-run | ||
|
@@ -39,8 +39,14 @@ jobs: | |
runs-on: ${{ matrix.runs_on }} | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Buildx | ||
uses: ./.github/actions/build | ||
with: | ||
|
@@ -75,8 +81,13 @@ jobs: | |
grafana: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
|