refactor: replace stringset with stdlib funcs #1260
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backport to active branches | |
on: | |
pull_request_target: | |
types: [closed, labeled] | |
branches: | |
- main | |
permissions: | |
pull-requests: write | |
contents: read | |
jobs: | |
backport: | |
# Only run if the PR was merged (not just closed) and has one of the backport labels | |
# or has been added afterwards. | |
if: | | |
github.event.pull_request.merged == true && | |
( | |
(github.event.action == 'closed' && contains(toJSON(github.event.pull_request.labels.*.name), 'backport-active-')) || | |
(github.event.action == 'labeled' && startsWith(github.event.label.name, 'backport-active-')) | |
) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: elastic/oblt-actions/github/backport-active@v1 |