summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-05-25 11:38:29 +0200
committerGitHub <noreply@github.com>2021-05-25 11:38:29 +0200
commitd71078f4f403c749dad94552be2b9b51c378879e (patch)
treec5af32749d1b481cd20b2793b95373c603afbd80 /.github
parent1ab8b02359093d1cbd6c2993149f635ee9015589 (diff)
parent51c7afa95e58bc7f58c081509f046f9d49aa5041 (diff)
downloadnixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.tar
nixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.tar.gz
nixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.tar.bz2
nixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.tar.lz
nixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.tar.xz
nixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.tar.zst
nixpkgs-d71078f4f403c749dad94552be2b9b51c378879e.zip
Merge pull request #124273 from NixOS/backporting-action
Add backporting action
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/backport.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
new file mode 100644
index 00000000000..69da652ba59
--- /dev/null
+++ b/.github/workflows/backport.yml
@@ -0,0 +1,22 @@
+name: Backport
+on:
+  pull_request:
+    types: [closed]
+jobs:
+  backport:
+    name: Create backport PRs
+    if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          # required to find all branches
+          fetch-depth: 0
+      - name: Create backport PRs
+        # should be kept in sync with `version`
+        uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          github_workspace: ${{ github.workspace }}
+          # should be kept in sync with `uses`
+          version: 9b8949dcd4295d364b0939f07d0c7593598d26cd