diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6c3405a..d223cd0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -57,17 +57,17 @@ } else { - throw new Error(`User with email ${email} not found`); + core.exportVariable('user_id', ''); } } else { - throw new Error(`Failed to fetch user list: ${data.error}`); + core.exportVariable('user_id', ''); } } else { - throw new Error('Failed to extract email from actor'); + core.exportVariable('user_id', ''); } - name: Send Slack notification @@ -100,9 +100,14 @@ { "type": "context", "elements": [ + { + "type": "image", + "image_url": "${{ github.event.check_run.app.owner.avatar_url }}", + "alt_text": "Icon" + }, { "type": "mrkdwn", - "text": "<|View more details>" + "text": "<${{ github.event.check_run.details_url }}|View more details>" } ] }