Skip to content

Commit

Permalink
Added more conext information to slack notification
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Oct 30, 2024
1 parent 1ac9857 commit 4b10329
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/playground-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ jobs:
cat playground/.env
- name: Start docker containers
id: containers
run: |
cd playground
# firstly start explorer container to workaround yarn cache problem
docker compose -f docker-compose.fork.yml up -d explorer
docker compose -f docker-compose.fork.yml up -d
- name: Execute validation script
id: test_script
run: |
cd playground
./test_playground.sh
Expand Down Expand Up @@ -76,6 +78,15 @@ jobs:
uses: slackapi/[email protected]
with:
payload: |
{"job_link":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
{
"job_link":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"actor":"${{ github.actor }}",
"action":"${{ github.action_status }}",
"base_ref":"${{ github.base_ref }}",
"event_name":"${{ github.event_name }}",
"head_ref":"${{ github.head_ref }}",
"step_containers":"${{ steps.containers.conclusion }}",
"step_test_script":"${{ steps.test_script.conclusion }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PLAYGROUND_CI_WEBHOOK_URL }}

0 comments on commit 4b10329

Please sign in to comment.