Unverified Commit 788e07db authored by Frank Lee's avatar Frank Lee Committed by GitHub
Browse files

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

* [workflow] fixed the docker build workflow

* polish code
parent 4d29c0f8
name: Publish Docker Image to DockerHub after Merge
name: Publish Docker Image to DockerHub after Publish
on:
workflow_dispatch:
pull_request:
paths:
- 'version.txt'
types:
- closed
release:
types: [published]
jobs:
release:
......@@ -50,7 +47,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.8.14'
python-version: "3.8.14"
- name: Install requests
run: pip install requests
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment