ci: Fix slack webhook (#22)

This commit is contained in:
Anatoly Laskaris 2022-09-26 17:42:29 +03:00 committed by GitHub
parent 0daae14bf8
commit 39c1e42552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,14 @@ jobs:
- run: npm run compile-aqua -- -c "UNIQUE_CONST = 1" -c "ANOTHER_CONST = \"ab\"" - run: npm run compile-aqua -- -c "UNIQUE_CONST = 1" -c "ANOTHER_CONST = \"ab\""
- run: npm run build - 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 - name: Report failure to slack
if: inputs.fluence-env != 'local' && failure() if: inputs.fluence-env != 'local' && failure()
@ -107,9 +114,9 @@ jobs:
attachments: | attachments: |
[ [
{ {
"color": "bad", "color": "danger",
"author_name": "${{ github.actor }}", "author_name": "github[1h]",
"author_icon": "${{ github.event.sender.avatar_url }}", "author_icon": "https://github.githubassets.com/images/modules/logos_page/Octocat.png",
"fields": [ "fields": [
{ {
"title": "Fluence environment", "title": "Fluence environment",
@ -117,7 +124,7 @@ jobs:
}, },
{ {
"title": "GitHub Actions URL", "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 }}"
}, },
] ]
} }