2024-04-21 15:54:59 +00:00
|
|
|
name: "Check cherry-picks"
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- 'release-**'
|
|
|
|
- 'staging-**'
|
2024-06-20 14:57:18 +00:00
|
|
|
- '!staging-next'
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
2024-09-19 14:19:46 +00:00
|
|
|
name: cherry-pick-check
|
2024-04-21 15:54:59 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'NixOS'
|
|
|
|
steps:
|
2024-10-04 16:56:33 +00:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2024-04-21 15:54:59 +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"
|