mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-15 17:41:03 +00:00
ci: Fix slack webhook (#22)
This commit is contained in:
parent
0daae14bf8
commit
39c1e42552
17
.github/workflows/tests.yml
vendored
17
.github/workflows/tests.yml
vendored
@ -97,7 +97,14 @@ jobs:
|
||||
|
||||
- run: npm run compile-aqua -- -c "UNIQUE_CONST = 1" -c "ANOTHER_CONST = \"ab\""
|
||||
- run: npm run build
|
||||
- run: npm run test
|
||||
- run: |
|
||||
export retries=2
|
||||
while ((retries)); do
|
||||
if npm run test; then
|
||||
exit 0
|
||||
fi
|
||||
((retries--))
|
||||
done
|
||||
|
||||
- name: Report failure to slack
|
||||
if: inputs.fluence-env != 'local' && failure()
|
||||
@ -107,9 +114,9 @@ jobs:
|
||||
attachments: |
|
||||
[
|
||||
{
|
||||
"color": "bad",
|
||||
"author_name": "${{ github.actor }}",
|
||||
"author_icon": "${{ github.event.sender.avatar_url }}",
|
||||
"color": "danger",
|
||||
"author_name": "github[1h]",
|
||||
"author_icon": "https://github.githubassets.com/images/modules/logos_page/Octocat.png",
|
||||
"fields": [
|
||||
{
|
||||
"title": "Fluence environment",
|
||||
@ -117,7 +124,7 @@ jobs:
|
||||
},
|
||||
{
|
||||
"title": "GitHub Actions URL",
|
||||
"value": "${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}"
|
||||
"value": "https://github.com/fluencelabs/aqua-playground/actions/runs/${{ github.run_id }}"
|
||||
},
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user