fix(ci): Escape ` from JSON metadata files.

This commit is contained in:
Peter Johanson 2023-01-05 03:18:27 +00:00 committed by Pete Johanson
parent c23443a086
commit 5b9b507de3

View file

@ -10,7 +10,7 @@ on:
- ".github/workflows/build.yml" - ".github/workflows/build.yml"
- "app/**" - "app/**"
schedule: schedule:
- cron: '22 4 * * *' - cron: "22 4 * * *"
jobs: jobs:
build: build:
@ -51,7 +51,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14.x' node-version: "14.x"
- name: Install @actions/artifact - name: Install @actions/artifact
run: npm install @actions/artifact run: npm install @actions/artifact
- name: Build and upload artifacts - name: Build and upload artifacts
@ -155,7 +155,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14.x' node-version: "14.x"
- name: Install js-yaml - name: Install js-yaml
run: npm install js-yaml run: npm install js-yaml
- uses: actions/github-script@v4 - uses: actions/github-script@v4
@ -184,7 +184,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14.x' node-version: "14.x"
- name: Install js-yaml - name: Install js-yaml
run: npm install js-yaml run: npm install js-yaml
- uses: actions/github-script@v4 - uses: actions/github-script@v4
@ -311,7 +311,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '14.x' node-version: "14.x"
- name: Install js-yaml - name: Install js-yaml
run: npm install js-yaml run: npm install js-yaml
- name: Aggregate Metadata - name: Aggregate Metadata
@ -329,7 +329,7 @@ jobs:
yaml.loadAll(fs.readFileSync(f, "utf8")) yaml.loadAll(fs.readFileSync(f, "utf8"))
); );
return JSON.stringify(aggregated).replace(/\\/g,"\\\\"); return JSON.stringify(aggregated).replace(/\\/g,"\\\\").replace(/`/g,"\\`");
result-encoding: string result-encoding: string
- name: Organize Metadata - name: Organize Metadata
@ -389,7 +389,7 @@ jobs:
- uses: Ana06/get-changed-files@v2.0.0 - uses: Ana06/get-changed-files@v2.0.0
id: changed-files id: changed-files
with: with:
format: 'json' format: "json"
- uses: actions/github-script@v4 - uses: actions/github-script@v4
id: board-changes id: board-changes
with: with: