Skip to content

Use single quotes in the if condition for job #2

Use single quotes in the if condition for job

Use single quotes in the if condition for job #2

name: Backport GH Issue
on:
workflow_call:
secrets:
GH_ACTIONS_REPO_TOKEN:
required: true
jobs:
backport-issue:
runs-on: ubuntu-latest

Check failure on line 11 in .github/workflows/spring-backport-issue.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/spring-backport-issue.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
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