Skip to content

Commit 1e07051

Browse files
Ashish MishraAshish Mishra
authored andcommitted
adding PR link fix
1 parent d4bf776 commit 1e07051

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/unitTestPipeline.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ jobs:
7979
else
8080
echo "color=#ff0000" >> $GITHUB_OUTPUT
8181
fi
82+
- name: Build PR link
83+
id: pr_link
84+
run: |
85+
if [ "${{ github.event_name }}" = "pull_request" ]; then
86+
echo "link=*🔗 PR:* <${{ github.event.pull_request.html_url }}|#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}>" >> $GITHUB_OUTPUT
87+
else
88+
echo "link=" >> $GITHUB_OUTPUT
89+
fi
8290
8391
- name: Publish Test Results on Slack
8492
if: always()

0 commit comments

Comments
 (0)