Skip to content

Commit

Permalink
Add link to Github Action run as part of notification. (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanklee86 authored Jan 8, 2022
1 parent fd2072a commit aeae1dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ONLY_NOTIFY_ON_ISSUES | True/False | If present, will only send notifications if
Sample Workflow section:
```.env
- name: notify-tests
uses: ./
uses: ivanklee86/xunit-slack-reporter@v1.3.0
env:
EXIT_CODE_FROM_REPORT: "True"
SLACK_CHANNEL: CKQ7C7KJN
Expand All @@ -44,7 +44,7 @@ Sample Workflow section:

```.env
- name: notify-tests
uses: ./
uses: ivanklee86/xunit-slack-reporter@v1.3.0
env:
ONLY_NOTIFY_ON_ISSUES: "True"
SLACK_CHANNEL: CKQ7C7KJN
Expand Down
2 changes: 1 addition & 1 deletion app/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():
slack_attachment = {
"color": constants.PASS_COLOR,
"author_name": "XUnit Slack Reporter",
"author_link": "https://github.com/ivanklee86/xunit-slack-reporter",
"author_link": f"https://github.com/{os.getenv('GITHUB_REPOSITORY')}/actions/runs/{os.getenv('GITHUB_RUN_ID')}",
"title": f"XUnit test results for {os.getenv('GITHUB_WORKFLOW')} on {os.getenv('GITHUB_REF')}",
"fields": []
}
Expand Down

0 comments on commit aeae1dd

Please sign in to comment.