microsoft/variable-substitution

YAML file mistakenly taken as XML format

Opened this issue · 0 comments

I created an YAML file with some html context as value, and the file is mastakenly taken as XML file by the workflow.

It looks that some thing wrong in xmlDomUtility.js

test.yml

foo:
  bar:
    test: "<div>some html context in yaml file</div>"

.github/workflows/test.yml

name: 'Test Workflow'

on:
  push:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: replace secrets in yaml config
        uses: microsoft/variable-substitution@v1
        with:
          files: 'test.yml'
        env:
          foo.bar.test: ${{ secrets.ATESTSTRING }}

Output:
image

It would be greatly appreciated if it can be fixed. Thanks!