зеркало из https://github.com/github/ruby.git
Enable Slack notifications on more Actions
auto_request_review, codeql-analysis, scorecards don't have it either, but those are intentional.
This commit is contained in:
Родитель
ef008d8946
Коммит
e25beac145
|
@ -143,3 +143,17 @@ jobs:
|
||||||
GIT_AUTHOR_NAME: git
|
GIT_AUTHOR_NAME: git
|
||||||
GIT_COMMITTER_NAME: git
|
GIT_COMMITTER_NAME: git
|
||||||
if: ${{ github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull') && steps.show.outcome == 'failure' }}
|
if: ${{ github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull') && steps.show.outcome == 'failure' }}
|
||||||
|
|
||||||
|
- uses: ruby/action-slack@b6882ea6ef8f556f9f9af9ec1220d3f1ced74acf # v3.0.0
|
||||||
|
with:
|
||||||
|
payload: |
|
||||||
|
{
|
||||||
|
"ci": "GitHub Actions",
|
||||||
|
"env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.configure }}${{ matrix.arch }}",
|
||||||
|
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||||
|
"commit": "${{ github.sha }}",
|
||||||
|
"branch": "${{ github.ref_name }}"
|
||||||
|
}
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||||
|
if: ${{ failure() && github.event_name == 'push' }}
|
||||||
|
|
|
@ -110,6 +110,20 @@ jobs:
|
||||||
ruby ./bootstraptest/runner.rb --ruby="$(which wasmtime) run $PWD/../build/ruby --mapdir /::./ -- " --verbose "--sets=$NO_THREAD_TESTS"
|
ruby ./bootstraptest/runner.rb --ruby="$(which wasmtime) run $PWD/../build/ruby --mapdir /::./ -- " --verbose "--sets=$NO_THREAD_TESTS"
|
||||||
working-directory: src
|
working-directory: src
|
||||||
|
|
||||||
|
- uses: ruby/action-slack@b6882ea6ef8f556f9f9af9ec1220d3f1ced74acf # v3.0.0
|
||||||
|
with:
|
||||||
|
payload: |
|
||||||
|
{
|
||||||
|
"ci": "GitHub Actions",
|
||||||
|
"env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.configure }}${{ matrix.arch }}",
|
||||||
|
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||||
|
"commit": "${{ github.sha }}",
|
||||||
|
"branch": "${{ github.ref_name }}"
|
||||||
|
}
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||||
|
if: ${{ failure() && github.event_name == 'push' }}
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
|
Загрузка…
Ссылка в новой задаче