summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2024-04-08 22:00:51 +0200
committerGitHub <noreply@github.com>2024-04-08 22:00:51 +0200
commit413f06441432fa391ec1bacd7353feafc3dc5f9a (patch)
tree8153fb56c1624d4089c917174ae7ed9122b5a7ae /.github/workflows
parentf955c9236358706af5c370b2d9d88e23cdad6fd4 (diff)
parentfbad66daa54da694be13df7b24b18b7bad843d56 (diff)
Merge pull request #172098 from risicle/ris-cherry-pick-check
add "check cherry-picks" github action
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/check-cherry-picks.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/check-cherry-picks.yml b/.github/workflows/check-cherry-picks.yml
new file mode 100644
index 000000000000..9e7f6e277e99
--- /dev/null
+++ b/.github/workflows/check-cherry-picks.yml
@@ -0,0 +1,24 @@
+name: "Check cherry-picks"
+on:
+ pull_request_target:
+ branches:
+ - 'release-*'
+ - 'staging-*'
+
+permissions: {}
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'NixOS'
+ steps:
+ - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+ 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"