forked from opensearch-project/opensearch-java
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 721 Bytes
/
backport.yml
File metadata and controls
28 lines (26 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Backport
on:
pull_request_target:
types:
- closed
- labeled
jobs:
backport:
if: ${{ contains(github.event.label.name, 'backport') }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Backport
steps:
- name: GitHub App token
id: github_app_token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Backport
uses: VachaShah/backport@v2.2.0
with:
github_token: ${{ steps.github_app_token.outputs.token }}
head_template: backport/backport-<%= number %>-to-<%= base %>