mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 09:20:41 +08:00
test-your-pr: fix bot comment [skip ci]
Signed-off-by: Jerry <isjerryxiao@outlook.com>
This commit is contained in:
parent
aabb859780
commit
f1d56806b9
1 changed files with 11 additions and 5 deletions
16
.github/workflows/test-your-pr.yml
vendored
16
.github/workflows/test-your-pr.yml
vendored
|
@ -24,9 +24,13 @@ jobs:
|
|||
python-version: 3.x
|
||||
architecture: x64
|
||||
|
||||
- run: env PYTHONUNBUFFERED=1 pip install -r scripts/requirements.txt 2>(tee -a ~/buildjob.log >&2)
|
||||
- shell: bash
|
||||
run: |
|
||||
env PYTHONUNBUFFERED=1 pip install -r scripts/requirements.txt 2>(tee -a ~/buildjob.log >&2)
|
||||
|
||||
- run: env PYTHONUNBUFFERED=1 scripts/generate-roa.sh 2>(tee -a ~/buildjob.log >&2)
|
||||
- shell: bash
|
||||
run: |
|
||||
env PYTHONUNBUFFERED=1 scripts/generate-roa.sh 2>(tee -a ~/buildjob.log >&2)
|
||||
|
||||
- run: git -C generated diff README.md
|
||||
|
||||
|
@ -38,7 +42,7 @@ jobs:
|
|||
comment_success:
|
||||
needs: [build]
|
||||
runs-on: ubuntu-20.04
|
||||
if: needs.build.result == 'success'
|
||||
if: ${{ always() && contains(needs.build.result, 'success') }}
|
||||
steps:
|
||||
- uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
|
@ -49,9 +53,11 @@ jobs:
|
|||
comment_failure:
|
||||
needs: [build]
|
||||
runs-on: ubuntu-20.04
|
||||
if: needs.build.result == 'failure'
|
||||
if: ${{ always() && contains(needs.build.result, 'failure') }}
|
||||
steps:
|
||||
- run: tail ~/buildjob.log > ~/buildjob_tail.log
|
||||
- shell: bash
|
||||
run: |
|
||||
tail ~/buildjob.log > ~/buildjob_tail.log
|
||||
|
||||
- uses: thollander/actions-comment-pull-request@v2
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue