Closed jdubois closed 2 years ago
As described in this link https://stackoverflow.com/questions/44327773/mapping-values-are-not-allowed-in-this-context, the error may be casued by yaml format. Would you please check the line 33 and try to remove the unexpected spaces in front of uses and with. I think the format may be like that:
- name: Deploy to Azure Spring Cloud
uses: azure/spring-cloud-deploy@v1
with:
action: deploy
service-name: ${{ env.SPRING_CLOUD_SERVICE_NAME }}
app-name: ${{ env.APPLICATION_CAF_NAME }}
use-staging-deployment: ${{ inputs.use_staging_deployment }}
package: "*.[j,w]ar"
I hope this could help you !
Oh I feel stupid ! I haven’t tested this yet, but it’s clearly the issue, so I’m closing this. Thank you.
I'm trying to use this GitHub Action inside a composite action, which is available at https://github.com/microsoft/nubesgen-actions/blob/test-azure-spring-cloud-deployment/gitops-deploy-to-spring-cloud-java/action.yml
When running it, I get an error saying "The type 'MappingToken' was expected." - could you help me understand what this is? Here is the full log: