Skip to content

Commit 2ff8a00

Browse files
committed
Enable backport bot on 5.3.x
Closes gh-32451
1 parent a653b85 commit 2ff8a00

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/backport-bot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Backport Bot
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
pull_request:
7+
types: [labeled]
8+
push:
9+
branches:
10+
- '*.x'
11+
permissions:
12+
contents: read
13+
jobs:
14+
build:
15+
permissions:
16+
contents: read
17+
issues: write
18+
pull-requests: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-java@v3
23+
with:
24+
distribution: 'temurin'
25+
java-version: '17'
26+
- name: Download BackportBot
27+
run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar
28+
- name: Backport
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_EVENT: ${{ toJSON(github.event) }}
32+
run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="$GITHUB_TOKEN" --github.event_name "$GITHUB_EVENT_NAME" --github.event "$GITHUB_EVENT"

0 commit comments

Comments
 (0)