2024-02-15 03:00:30 -06:00
|
|
|
# Owned by grafana-release-guild
|
2023-07-12 10:11:20 -05:00
|
|
|
# Intended to be dropped into the base repo Ex: grafana/grafana
|
|
|
|
name: Check for patch conflicts
|
|
|
|
run-name: check-patch-conflicts-${{ github.base_ref }}-${{ github.head_ref }}
|
2023-07-06 10:06:17 -05:00
|
|
|
on:
|
2023-08-02 16:20:43 -05:00
|
|
|
pull_request:
|
2023-07-06 10:06:17 -05:00
|
|
|
types:
|
|
|
|
- opened
|
2023-08-02 16:20:43 -05:00
|
|
|
- reopened
|
|
|
|
- synchronize
|
2023-07-06 10:06:17 -05:00
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
- "v*.*.*"
|
|
|
|
- "release-*"
|
|
|
|
|
|
|
|
# Since this is run on a pull request, we want to apply the patches intended for the
|
|
|
|
# target branch onto the source branch, to verify compatibility before merging.
|
|
|
|
jobs:
|
|
|
|
trigger_downstream_patch_check:
|
|
|
|
uses: grafana/security-patch-actions/.github/workflows/test-patches.yml@main
|
2024-02-20 05:21:38 -06:00
|
|
|
if: github.repository == 'grafana/grafana'
|
2023-07-06 10:06:17 -05:00
|
|
|
with:
|
|
|
|
src_repo: "${{ github.repository }}"
|
|
|
|
src_ref: "${{ github.head_ref }}" # this is the source branch name, Ex: "feature/newthing"
|
|
|
|
patch_repo: "${{ github.repository }}-security-patches"
|
|
|
|
patch_ref: "${{ github.base_ref }}" # this is the target branch name, Ex: "main"
|
|
|
|
secrets: inherit
|