[workflow] fixed the docker build workflow (#3794)

* [workflow] fixed the docker build workflow

* polish code
This commit is contained in:
Frank Lee
2023-05-22 16:30:32 +08:00
committed by GitHub
parent 4d29c0f8e0
commit 788e07dbc5
2 changed files with 8 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ jobs:
report-test-coverage:
runs-on: ubuntu-latest
steps:
- name: 'Download artifact'
- name: "Download artifact"
uses: actions/github-script@v6
with:
script: |
@@ -31,7 +31,7 @@ jobs:
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/report.zip`, Buffer.from(download.data));
- name: 'Unzip artifact'
- name: "Unzip artifact"
id: unzip
run: |
unzip report.zip
@@ -58,7 +58,7 @@ jobs:
echo "</details>" >> coverage_report.txt
mv coverage_report.txt coverage.txt
- name: 'Comment on PR'
- name: "Comment on PR"
if: steps.unzip.outputs.hasReport == 'true'
uses: actions/github-script@v6
with: