Skip to content

Commit

Permalink
fix ci results comment
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Mar 28, 2024
1 parent 2451b25 commit be82d40
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests

on:
pull_request_target:
pull_request:
branches:
- main
- "[0-9]+.[0-9]+"
Expand Down Expand Up @@ -320,6 +320,7 @@ jobs:
run: |
ls -lahR || true
rm -f tests/allure/results/cover.out || true
echo "${{ github.event_name }}"
- name: Publish allure report
if: ${{ success() || failure() }}
Expand All @@ -334,7 +335,7 @@ jobs:
resultsGlob: "tests/allure/results"
updatePr: actions
collapseSummary: false
summary: suites
summary: packages
summaryTableType: markdown
copyLatest: true
bucket: csp-allure-reports
Expand All @@ -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 }}
Expand All @@ -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<<EOF" >> $GITHUB_ENV
Expand All @@ -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 }}
Expand Down

0 comments on commit be82d40

Please sign in to comment.