From f1d56806b9cdc8604da0e47ba76e57dec690d572 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 5 Dec 2023 19:08:54 +0800 Subject: [PATCH] test-your-pr: fix bot comment [skip ci] Signed-off-by: Jerry --- .github/workflows/test-your-pr.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-your-pr.yml b/.github/workflows/test-your-pr.yml index 6af2362..a72d26c 100644 --- a/.github/workflows/test-your-pr.yml +++ b/.github/workflows/test-your-pr.yml @@ -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: