meta-freescale-3rdparty/.github/workflows/backport.yaml
Vinicius Aquino 485a417afd cicd: backport: Fix events allowing the workflow to run
Even when using pull_request_target, the merged is issued as
pull_request and this should be used to ensure we can run the workflow.

Signed-off-by: Vinicius Aquino <vinicius.aquino@ossystems.com.br>
2021-08-09 10:45:08 -03:00

29 lines
861 B
YAML
Executable File

name: Backport labeled merged pull requests
on:
pull_request_target:
types: [closed]
jobs:
build:
name: Create backport PRs
runs-on: ubuntu-latest
# Only run when pull request is merged
# or when a comment containing `/backport` is created
if: github.event.pull_request.merged
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@v0.0.4
with:
# Required
# Version of the backport-action
# Must equal the version in `uses`
# Recommended: latest tag or `master`
version: v0.0.4
github_token: ${{ secrets.GITHUB_TOKEN }}
github_workspace: ${{ github.workspace }}