Skip to content

Commit ae0c3e0

Browse files
committed
Fix action.yml for proper repo and Bash
1 parent 43a5a23 commit ae0c3e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ runs:
1717
- name: Download Backport Bot jar and run
1818
shell: bash
1919
run: |
20-
gh release download "$ACTION_VERSION" --repo "$GITHUB_REPOSITORY" --pattern "backport-bot-*.jar"
20+
gh release download "$ACTION_VERSION" --repo spring-io/backport-bot --pattern "backport-bot-*.jar"
2121
22-
java -jar backport-bot-"$ACTION_VERSION".jar \
23-
--github.accessToken="GH_TOKEN" \
22+
jars=( ./*.jar )
23+
24+
java -jar "${jars[0]}" \
25+
--github.accessToken="$GH_TOKEN" \
2426
--github.event_name="$GITHUB_EVENT_NAME" \
2527
--github.event="$GITHUB_EVENT"
2628
env:

0 commit comments

Comments
 (0)