-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
When a step creates a single line output by echoing the value to $GITHUB_OUTPUT, the plugin successfully detects it for auto-completion and validation in subsequent steps.
When a step creates a multiline output in the same way, the plugin does not detect it correctly, and will show the output as being invalid when used in subsequent steps.
Steps to Reproduce
Here is a code example using GitHub's standard syntax for placing multiline strings into outputs. The use case here is creating a JSON credential string before logging in to Azure CLI.
- name: Prep Azure Creds
id: creds
run: |
CREDS=$(cat <<EOF
{
"clientId" : "$CLIENT_ID",
"clientSecret" : "$SERVICE_PRINCIPAL",
"subscriptionId" : "$SUBSCRIPTION_ID",
"tenantId" : "$TENANT_ID"
}
EOF
)
# GitHub's syntax for putting multilines into the output
{
echo "CREDS<<EOF"
echo "$CREDS"
echo "EOF"
} >> "$GITHUB_OUTPUT"
env:
CLIENT_ID: ${{ secrets.azureClientId }}
SERVICE_PRINCIPAL: ${{ secrets.azureServicePrincipal }}
SUBSCRIPTION_ID: ${{ secrets.azureSubscriptionId }}
TENANT_ID: ${{ secrets.azureTenantId }}
- name: Az CLI login
uses: azure/login@v2
with:
creds: ${{ steps.creds.outputs.CREDS }}Operating System
GitHub Ubuntu Runner
Plugin Version
2025.0.0
IDE Name and Version
IntelliJ IDEA Ultimate 2025.1.3
Expected behavior
The output should show as valid in subsequent steps and be available via autocomplete.
Screenshots
