mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-12-26 01:49:23 +08:00
test-your-pr: fix bot comment again [skip ci]
Signed-off-by: Jerry <isjerryxiao@outlook.com>
This commit is contained in:
parent
be720938c2
commit
fdc7b8b410
1 changed files with 15 additions and 7 deletions
22
.github/workflows/test-your-pr.yml
vendored
22
.github/workflows/test-your-pr.yml
vendored
|
@ -9,6 +9,9 @@ jobs:
|
||||||
name: Generate ROA
|
name: Generate ROA
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
generate_roa: ${{ steps.generate_roa.outputs.base64 }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -24,13 +27,18 @@ jobs:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- shell: bash
|
- run: pip install -r scripts/requirements.txt
|
||||||
run: |
|
|
||||||
env PYTHONUNBUFFERED=1 pip install -r scripts/requirements.txt 2> >(tee -a ~/buildjob.log >&2)
|
|
||||||
|
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
success=true
|
||||||
env PYTHONUNBUFFERED=1 scripts/generate-roa.sh 2> >(tee -a ~/buildjob.log >&2)
|
|
||||||
|
scripts/generate-roa.sh 2> >(tee ~/buildjob.log >&2) || success=false
|
||||||
|
|
||||||
|
echo -n "base64=" >> $GITHUB_OUTPUT
|
||||||
|
base64 -w0 ~/buildjob.log >> $GITHUB_OUTPUT
|
||||||
|
${success}
|
||||||
|
shell: bash
|
||||||
|
id: generate_roa
|
||||||
|
|
||||||
- run: git -C generated diff README.md
|
- run: git -C generated diff README.md
|
||||||
|
|
||||||
|
@ -57,7 +65,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: |
|
run: |
|
||||||
tail ~/buildjob.log > ~/buildjob_tail.log
|
echo ${{needs.build.outputs.generate_roa}} | base64 -d |tail > ~/buildjob_tail.log || echo 'internal error' > ~/buildjob_tail.log
|
||||||
|
|
||||||
- uses: thollander/actions-comment-pull-request@v2
|
- uses: thollander/actions-comment-pull-request@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue