2024-02-15 03:00:30 -06:00
|
|
|
# Owned by grafana-release-guild
|
2023-07-06 10:06:17 -05:00
|
|
|
# Intended to be dropped into the base repo, Ex: grafana/grafana
|
2023-07-12 10:11:20 -05:00
|
|
|
name: Sync to mirror
|
2023-08-18 12:01:43 -05:00
|
|
|
run-name: sync-to-mirror-${{ github.ref_name }}
|
2023-07-06 10:06:17 -05:00
|
|
|
on:
|
2023-07-13 17:15:07 -05:00
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
2023-07-06 10:06:17 -05:00
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
- "v*.*.*"
|
|
|
|
- "release-*"
|
|
|
|
|
|
|
|
# This is run after the pull request has been merged, so we'll run against the target branch
|
|
|
|
jobs:
|
2023-07-12 10:11:20 -05:00
|
|
|
trigger_downstream_patch_mirror:
|
2023-08-18 12:01:43 -05:00
|
|
|
concurrency: patch-mirror-${{ github.ref_name }}
|
2023-07-06 10:06:17 -05:00
|
|
|
uses: grafana/security-patch-actions/.github/workflows/mirror-branch-and-apply-patches.yml@main
|
2023-07-13 17:15:07 -05:00
|
|
|
if: github.repository == 'grafana/grafana'
|
2023-07-06 10:06:17 -05:00
|
|
|
with:
|
2023-07-13 17:15:07 -05:00
|
|
|
ref: "${{ github.ref_name }}" # this is the target branch name, Ex: "main"
|
2023-07-06 10:06:17 -05:00
|
|
|
src_repo: "${{ github.repository }}"
|
|
|
|
dest_repo: "${{ github.repository }}-security-mirror"
|
|
|
|
patch_repo: "${{ github.repository }}-security-patches"
|
|
|
|
secrets: inherit
|
|
|
|
|