Skip to content

Commit fd10acf

Browse files
committed
Add action.yml to run jar of this project
1 parent dbb771c commit fd10acf

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

action.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Run Backport Bot'
2+
description: 'Run Backport Bot'
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: actions/checkout@v5
8+
with:
9+
show-progress: false
10+
11+
- uses: actions/setup-java@v5
12+
with:
13+
distribution: temurin
14+
java-version: 17
15+
16+
- name: Download Backport Bot jar from release asset
17+
shell: bash
18+
env:
19+
GH_TOKEN: ${{ github.token }}
20+
run: gh release download " ${{ github.action_ref }}" --repo "$GITHUB_REPOSITORY" --pattern "*.jar"
21+
22+
- name: Run Backport Bot jar
23+
shell: bash
24+
run: exec java -jar "$(ls -1 *.jar | head -n1)"

0 commit comments

Comments
 (0)