From 78775e3bbe40d9f62ec8c35ad5722ef8f069faf6 Mon Sep 17 00:00:00 2001 From: Kostas Stamatakis Date: Thu, 28 Mar 2024 11:32:49 +0200 Subject: [PATCH 1/3] fix ci results comment --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b4f1664db..f91d73d61d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -298,6 +298,7 @@ jobs: timeout-minutes: 60 permissions: pull-requests: write + checks: write if: ${{ success() || failure() }} env: AWS_REGION: "eu-west-1" @@ -318,8 +319,8 @@ jobs: if: ${{ success() || failure() }} shell: bash run: | - ls -lahR || true - rm -f tests/allure/results/cover.out || true + ls -lahR tests/allure/results/ || true + echo "event_name: ${{ github.event_name }}" - name: Publish allure report if: ${{ success() || failure() }} @@ -343,7 +344,7 @@ jobs: debug: false - name: Allure Summary - if: ${{ success() && github.event_name == 'pull_request' }} + if: ${{ success() && github.event_name != 'push' }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -354,8 +355,6 @@ jobs: ./.ci/scripts/allure-report-summary.sh "$allure_result" "$allure_url" allure_summary=$(./.ci/scripts/allure-report-summary.sh "$allure_result" "$allure_url") - # posting result into job summary - echo "$allure_summary" >> $GITHUB_STEP_SUMMARY # saving result into env variable (with multiline handling) echo "ALLURE_SUMMARY<> $GITHUB_ENV @@ -364,7 +363,7 @@ jobs: - name: Comment test success result uses: marocchino/sticky-pull-request-comment@v2 - if: ${{ success() && github.event_name == 'pull_request' }} + if: ${{ success() && github.event_name != 'push' }} with: header: CI Test Results number: ${{ github.event.number }} From 6a7405ddadd632e77f049bb9ba6053c1544a1283 Mon Sep 17 00:00:00 2001 From: Kostas Stamatakis Date: Thu, 28 Mar 2024 14:44:36 +0200 Subject: [PATCH 2/3] clean up --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f91d73d61d..02d23d46f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -320,7 +320,6 @@ jobs: shell: bash run: | ls -lahR tests/allure/results/ || true - echo "event_name: ${{ github.event_name }}" - name: Publish allure report if: ${{ success() || failure() }} From ed95a76e528709ec3ed34c8e6c9fe30f3455cf7c Mon Sep 17 00:00:00 2001 From: Kostas Stamatakis Date: Thu, 28 Mar 2024 17:08:08 +0200 Subject: [PATCH 3/3] remove check permission --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02d23d46f9..c28a7bcb8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -298,7 +298,6 @@ jobs: timeout-minutes: 60 permissions: pull-requests: write - checks: write if: ${{ success() || failure() }} env: AWS_REGION: "eu-west-1"