1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-22 05:30:42 +08:00

test-your-pr: fix bot comment again [skip ci]

Signed-off-by: Jerry <isjerryxiao@outlook.com>
This commit is contained in:
JerryXiao 2023-12-05 19:29:55 +08:00
parent be720938c2
commit fdc7b8b410
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5

View file

@ -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: