Skip to content

Commit

Permalink
Update generate_allure_report.yml - send url to allure report
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbinapps authored Aug 23, 2024
1 parent 1f52535 commit 91c077e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/generate_allure_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 91c077e

Please sign in to comment.