diff --git a/.github/workflows/generate_allure_report.yml b/.github/workflows/generate_allure_report.yml index f7113480..703fbdc7 100644 --- a/.github/workflows/generate_allure_report.yml +++ b/.github/workflows/generate_allure_report.yml @@ -64,8 +64,11 @@ jobs: 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: | #https://pmbinapps.github.io/github-action-with-allure-report/5/index.html - 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 }}" + 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 }}