From 91c077e88208bbb5ebaa8f4bdc560de0ea0454c6 Mon Sep 17 00:00:00 2001 From: Pawel Mergist <82152577+pmbinapps@users.noreply.github.com> Date: Fri, 23 Aug 2024 20:58:56 +0200 Subject: [PATCH] Update generate_allure_report.yml - send url to allure report --- .github/workflows/generate_allure_report.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/generate_allure_report.yml b/.github/workflows/generate_allure_report.yml index 8eae2521..f7113480 100644 --- a/.github/workflows/generate_allure_report.yml +++ b/.github/workflows/generate_allure_report.yml @@ -63,3 +63,9 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} # Provide the GitHub token for authentication publish_branch: gh-pages # Specify the branch to publish the report to publish_dir: allure-history # Specify the directory containing the report + + - name: Send Allure report to Slack # Step to send Allure report to Slack + if: always() # Execute even if previous steps fail + run: | + report_link="${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/${{ vars.ALLURE_RESULTS_PATH }}" + curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"New Allure report generated! Check it out: ${report_link}\"}" ${{ secrets.SLACK_WEBHOOK_URL }}