Skip to content

Commit 18f7d7b

Browse files
Onboard new backport-pr re-usable github workflow (geospatial) (#872)
- Replace old backport workflow with reusable workflow from opensearch-build - Remove obsolete backport-related workflows Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 0c7981f commit 18f7d7b

2 files changed

Lines changed: 6 additions & 44 deletions

File tree

.github/workflows/backport.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
1+
---
12
name: Backport
23
on:
34
pull_request_target:
4-
types:
5-
- closed
6-
- labeled
5+
types: [closed, labeled]
76

87
jobs:
98
backport:
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
pull-requests: write
14-
name: Backport
15-
steps:
16-
- name: GitHub App token
17-
id: github_app_token
18-
uses: tibdex/github-app-token@1901dc7d52169e70c27a8da37aef0d423e2867a2 # v1.5.0
19-
with:
20-
app_id: ${{ secrets.APP_ID }}
21-
private_key: ${{ secrets.APP_PRIVATE_KEY }}
22-
installation_id: 22958780
23-
24-
- name: Backport
25-
uses: VachaShah/backport@28c49d91ceec57d7c9f625f1031c1a4d637251f5 # v1.1.4
26-
with:
27-
github_token: ${{ steps.github_app_token.outputs.token }}
28-
branch_name: backport/backport-${{ github.event.number }}
9+
if: github.repository == 'opensearch-project/geospatial'
10+
uses: opensearch-project/opensearch-build/.github/workflows/backport-pr.yml@main
11+
secrets:
12+
OPENSEARCH_CI_BOT_TOKEN: ${{ secrets.OPENSEARCH_CI_BOT_TOKEN }}

.github/workflows/delete_backport_branch.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)