Skip to content

Commit

Permalink
ci(backport): align with readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
korthout committed Nov 24, 2022
1 parent 57dc2c5 commit bf3a040
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Backport labeled merged pull requests
name: Backport merged pull request
on:
pull_request:
types: [closed]
issue_comment:
types: [created]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
build:
name: Create backport PRs
backport:
name: Backport pull request
runs-on: ubuntu-latest
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests

# Only run when pull request is merged
# or when a comment containing `/backport` is created
if: >
Expand All @@ -24,18 +25,5 @@ jobs:
)
steps:
- uses: actions/checkout@v3
- name: Create backport PRs
uses: zeebe-io/backport-action@v0
with:
# Required
# Token to authenticate requests to GitHub
github_token: ${{ secrets.GITHUB_TOKEN }}

# Required
# Working directory for the backport action
github_workspace: ${{ github.workspace }}

# Optional
# Regex pattern to match github labels
# Must contain a capture group for target branchname
# label_pattern: ^backport ([^ ]+)$
- name: Create backport pull requests
uses: zeebe-io/backport-action@v1-rc1

0 comments on commit bf3a040

Please sign in to comment.