From bf3a040e351d173b6218ba3292b0a99460cda0b0 Mon Sep 17 00:00:00 2001 From: Nico Korthout Date: Thu, 24 Nov 2022 12:20:42 +0100 Subject: [PATCH] ci(backport): align with readme example --- .github/workflows/backport.yml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index d22b315..86e1a1c 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -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: > @@ -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 \ No newline at end of file