forked from opensearch-project/opensearch-go
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 729 Bytes
/
Copy pathbackport.yml
File metadata and controls
27 lines (25 loc) · 729 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
name: Backport
on:
pull_request_target:
types:
- closed
- labeled
jobs:
backport:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
name: Backport
steps:
- name: GitHub App token
id: app-token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Backport
uses: VachaShah/backport@28c49d91ceec57d7c9f625f1031c1a4d637251f5 # v1.1.4
with:
github_token: ${{ steps.app-token.outputs.token }}
branch_name: backport/backport-${{ github.event.number }}