Skip to content

Commit d4a6e33

Browse files
committed
Fix action.yml for proper ENV vars
1 parent 65ff386 commit d4a6e33

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ runs:
1414
distribution: temurin
1515
java-version: 17
1616

17-
- name: Download Backport Bot jar from release asset
17+
- name: Download Backport Bot jar and run
1818
shell: bash
19-
run: gh release download "${{ github.action_ref }}" --repo "$GITHUB_REPOSITORY" --pattern "backport-bot-*.jar"
19+
run: |
20+
gh release download "$ACTION_VERSION" --repo "$GITHUB_REPOSITORY" --pattern "backport-bot-*.jar"
21+
22+
java -jar backport-bot-"$ACTION_VERSION".jar \
23+
--github.accessToken="GH_TOKEN" \
24+
--github.event_name="$GITHUB_EVENT_NAME" \
25+
--github.event="$GITHUB_EVENT"
2026
env:
2127
GH_TOKEN: ${{ inputs.token }}
22-
23-
- name: Run Backport Bot jar
24-
shell: bash
25-
run: java -jar backport-bot-${{ github.action_ref }}.jar \
26-
--github.accessToken="${{ inputs.token }}" \
27-
--github.event_name="${{ github.event_name }}" \
28-
--github.event="${{ toJSON(github.event) }}"
29-
env:
28+
ACTION_VERSION: ${{ github.action_ref }}
29+
GITHUB_EVENT: ${{ toJSON(github.event) }}
3030
SPRING_MAIN_BANNERMODE: off

0 commit comments

Comments
 (0)