Make spring-backport-issue.yml
conditional on a token in commit mes…
#1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backport GH Issue | ||
on: | ||
workflow_call: | ||
secrets: | ||
GH_ACTIONS_REPO_TOKEN: | ||
required: true | ||
jobs: | ||
backport-issue: | ||
runs-on: ubuntu-latest | ||
if: {{ contains(github.event.head_commit.message, "Fixes: ") || contains(github.event.head_commit.message, "Closes: ") }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 24 | ||
- name: Create Backport Issue | ||
run: | | ||
wget -q https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar | ||
java -jar backport-bot-0.0.1-SNAPSHOT.jar \ | ||
--github.accessToken="$GITHUB_TOKEN" \ | ||
--github.event_name "$GITHUB_EVENT_NAME" \ | ||
--github.event "$GITHUB_EVENT" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | ||
GITHUB_EVENT: ${{ toJSON(github.event) }} | ||
SPRING_MAIN_BANNERMODE: off | ||