From b78a28be5fa714f8f6afe283a9b468969ff8cc43 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 31 May 2022 21:25:00 -0500 Subject: [PATCH] Add backport-bot.yml Closes gh-11313 --- .github/workflows/backport-bot.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/backport-bot.yml diff --git a/.github/workflows/backport-bot.yml b/.github/workflows/backport-bot.yml new file mode 100644 index 0000000000..85847140d7 --- /dev/null +++ b/.github/workflows/backport-bot.yml @@ -0,0 +1,21 @@ +name: Backport Bot + +on: + issues: + types: [labeled] + pull_request: + types: [labeled] + push: + branches: + - '*.x' +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar + - run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="${{ secrets.GITHUB_TOKEN }}" --github.event_name "${{ github.event_name }}" --github.event '${{ toJSON(github.event) }}'