2022-05-07 11:54:51 +00:00
|
|
|
name: "Check cherry-picks"
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
2024-04-09 17:27:11 +00:00
|
|
|
- 'release-**'
|
|
|
|
- 'staging-**'
|
2024-06-12 20:07:03 +00:00
|
|
|
- '!staging-next'
|
2022-05-07 11:54:51 +00:00
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
2024-08-01 03:28:40 +00:00
|
|
|
name: cherry-pick-check
|
2022-05-07 11:54:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'NixOS'
|
|
|
|
steps:
|
2024-10-28 11:50:56 +00:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2022-05-07 11:54:51 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
filter: blob:none
|
|
|
|
- name: Check cherry-picks
|
|
|
|
env:
|
|
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
|
|
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
|
|
run: |
|
|
|
|
./maintainers/scripts/check-cherry-picks.sh "$BASE_SHA" "$HEAD_SHA"
|