Skip to content

Commit

Permalink
Merge pull request #255 from freifunkMUC/backport-253-to-legacy
Browse files Browse the repository at this point in the history
[Backport legacy] github: add PR backport action
  • Loading branch information
grische committed Aug 18, 2023
2 parents 98c839f + f36aabb commit 59e5ca5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Backport merged pull request

on: # yamllint disable-line rule:truthy
pull_request_target:
types: [closed]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport pull request
runs-on: ubuntu-latest
# Don't run on closed unmerged pull requests
if: github.event.pull_request.merged
steps:
- uses: actions/checkout@v3
- name: Create backport pull requests
uses: korthout/backport-action@v1
1 change: 1 addition & 0 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- '**/CODEOWNERS'
- '.github/ISSUE_TEMPLATE'
- '.github/*.yml'
- '.github/workflows/backport.yml'
- 'contrib/sign.sh'

jobs:
Expand Down

0 comments on commit 59e5ca5

Please sign in to comment.