From 4bfe23745284e5f42d0d5db898f91e2772bcc646 Mon Sep 17 00:00:00 2001 From: Pawel Mergist <82152577+pmbinapps@users.noreply.github.com> Date: Fri, 23 Aug 2024 22:09:30 +0200 Subject: [PATCH] Update generate_allure_report.yml --- .github/workflows/generate_allure_report.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate_allure_report.yml b/.github/workflows/generate_allure_report.yml index 703fbdc7..293f9a86 100644 --- a/.github/workflows/generate_allure_report.yml +++ b/.github/workflows/generate_allure_report.yml @@ -70,5 +70,5 @@ jobs: - 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 }}/index.html" - curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"New Allure report generated! Check it out: ${report_link}\"}" ${{ secrets.SLACK_WEBHOOK_URL }} + allure_report_link="https://${{ github.repository_owner }}.github.io/${{ github.repository }}/actions/runs/${{ github.run_id }}/index.html" + curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"New Allure report generated! Check it out: ${allure_report_link}\"}" ${{ secrets.SLACK_WEBHOOK_URL }}