Skip to content

Test integration

Test integration #1

name: Run automated triage
on:
workflow_call:
inputs:
issue:
required: false
type: string
similar_issue_text:
required: false
type: string
comment:
required: false
type: string
jobs:
wti:
name: Run wti
runs-on: windows-2022
permissions:
issues: write
steps:

Check failure on line 22 in .github/workflows/automated-triage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/automated-triage.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- name: Checkout repo
uses: actions/checkout@v4
- name: 'Run WTI'
if: ${{ !contains(inputs.similar_issue_text, '''@') }} # Skip this step if the description contains a string that will break the here document
run: |
$message = @'
${{ inputs.similar_issue_text }}
'@;
$maybe_message = ""
if (![string]::IsNullOrEmpty($message)
{
$maybe_message = "--default-message-stdin";
}
$maybe_comment = @()
if (![string]::IsNullOrEmpty("${{ inputs.comment }}"))
{
$maybe_comment = @("--comment", "--${{ inputs.comment }}")
}
cd wsl\triage && echo $message | .\wti.exe --issue ${{ inputs.issue }} --config config.yml --github-token "${{ secrets.GITHUB_TOKEN }}" --ignore-tags $maybe_message @maybe_comment