From 6be24a0009b63259db4f5384a2c038c4abec77ab Mon Sep 17 00:00:00 2001 From: Pawel Mergist <82152577+pmbinapps@users.noreply.github.com> Date: Sat, 24 Aug 2024 18:19:37 +0200 Subject: [PATCH] Update generate_allure_report.yml --- .github/workflows/generate_allure_report.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_allure_report.yml b/.github/workflows/generate_allure_report.yml index 01b5f2c9..9be1347f 100644 --- a/.github/workflows/generate_allure_report.yml +++ b/.github/workflows/generate_allure_report.yml @@ -70,5 +70,6 @@ jobs: - name: Send Allure report to Slack # Step to send Allure report to Slack if: always() # Execute even if previous steps fail run: | - allure_report_link="https://${{ github.repository_owner }}.github.io/${{ github.repository }}/${{ github.run_number }}/index.html" + REPO_NAME=${GITHUB_REPOSITORY##*/} | + allure_report_link="https://${{ github.repository_owner }}.github.io/$REPO_NAME/${{ github.run_number }}/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 }}