mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use ruby/action-slack@v3.0.0 and ref_name (#6633)
It's moved from k0kubun to ruby org. Also, we don't need JavaScript eval to generate branch if we use github.ref_name, so v3.0.0 is a version that doesn't use eval. Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org> Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
a733633c57
commit
1dd9511b67
Notes:
git
2022-10-26 00:53:28 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
12 changed files with 24 additions and 24 deletions
4
.github/workflows/baseruby.yml
vendored
4
.github/workflows/baseruby.yml
vendored
|
@ -57,7 +57,7 @@ jobs:
|
|||
- run: make incs
|
||||
- run: make all
|
||||
- run: make test
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ jobs:
|
|||
"env": "${{ github.workflow }} / BASERUBY @ ${{ matrix.ruby }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/check_dependencies.yml
vendored
4
.github/workflows/check_dependencies.yml
vendored
|
@ -56,7 +56,7 @@ jobs:
|
|||
- run: make all golf
|
||||
- run: ruby tool/update-deps --fix
|
||||
- run: git diff --no-ext-diff --ignore-submodules --exit-code
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ jobs:
|
|||
"env": "${{ matrix.os }} / Dependencies need to update",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/check_misc.yml
vendored
4
.github/workflows/check_misc.yml
vendored
|
@ -98,7 +98,7 @@ jobs:
|
|||
GIT_COMMITTER_NAME: git
|
||||
if: ${{ github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull') && steps.diff.outcome == 'failure' }}
|
||||
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -106,7 +106,7 @@ jobs:
|
|||
"env": "${{ github.workflow }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/compilers.yml
vendored
4
.github/workflows/compilers.yml
vendored
|
@ -268,7 +268,7 @@ jobs:
|
|||
- run: make test-annocheck
|
||||
if: ${{ matrix.entry.check && endsWith(matrix.entry.name, 'annocheck') }}
|
||||
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -276,7 +276,7 @@ jobs:
|
|||
"env": "${{ github.workflow }} / ${{ matrix.entry.name }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
@ -85,7 +85,7 @@ jobs:
|
|||
PRECHECK_BUNDLED_GEMS: "no"
|
||||
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests != '' }}
|
||||
continue-on-error: ${{ matrix.continue-on-skipped_tests || false }}
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ jobs:
|
|||
"env": "${{ matrix.os }} / ${{ matrix.test_task }}${{ matrix.configure }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/mingw.yml
vendored
4
.github/workflows/mingw.yml
vendored
|
@ -151,7 +151,7 @@ jobs:
|
|||
make ${{ StartsWith(matrix.test_task, 'spec/') && matrix.test_task || 'test-spec' }}
|
||||
if: ${{matrix.test_task == 'check' || matrix.test_task == 'test-spec' || StartsWith(matrix.test_task, 'spec/')}}
|
||||
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -159,7 +159,7 @@ jobs:
|
|||
"env": "${{ github.workflow }} ${{ matrix.msystem }} / ${{ matrix.test_task }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/mjit-bindgen.yml
vendored
4
.github/workflows/mjit-bindgen.yml
vendored
|
@ -83,7 +83,7 @@ jobs:
|
|||
- run: $SETARCH make ${{ matrix.task }}
|
||||
- run: git diff --exit-code
|
||||
working-directory: src
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -91,7 +91,7 @@ jobs:
|
|||
"env": "${{ matrix.os }} / ${{ matrix.test_task }}${{ matrix.configure }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/mjit.yml
vendored
4
.github/workflows/mjit.yml
vendored
|
@ -84,7 +84,7 @@ jobs:
|
|||
ulimit -c unlimited
|
||||
make -s test-spec RUN_OPTS="$RUN_OPTS"
|
||||
timeout-minutes: 60
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ jobs:
|
|||
"env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/spec_guards.yml
vendored
4
.github/workflows/spec_guards.yml
vendored
|
@ -46,7 +46,7 @@ jobs:
|
|||
working-directory: spec/ruby
|
||||
env:
|
||||
CHECK_LEAKS: true
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ jobs:
|
|||
"env": "${{ github.workflow }} / rubyspec @ ${{ matrix.ruby }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/ubuntu.yml
vendored
4
.github/workflows/ubuntu.yml
vendored
|
@ -120,7 +120,7 @@ jobs:
|
|||
TESTS: ${{ matrix.skipped_tests }}
|
||||
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests != '' }}
|
||||
continue-on-error: ${{ matrix.continue-on-skipped_tests || false }}
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ jobs:
|
|||
"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 }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
|
@ -138,7 +138,7 @@ jobs:
|
|||
env:
|
||||
RUBY_TESTOPTS: -j${{env.TEST_JOBS}} --job-status=normal
|
||||
timeout-minutes: 60
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ jobs:
|
|||
"env": "VS${{ matrix.vs }} / ${{ matrix.test_task || 'check' }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
4
.github/workflows/yjit-ubuntu.yml
vendored
4
.github/workflows/yjit-ubuntu.yml
vendored
|
@ -135,7 +135,7 @@ jobs:
|
|||
BASE_REPO: ${{ github.event.pull_request.base.repo.full_name }}
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
if: ${{ matrix.test_task == 'yjit-bench' && startsWith(github.event_name, 'pull') }}
|
||||
- uses: k0kubun/action-slack@v2.0.0
|
||||
- uses: ruby/action-slack@v3.0.0
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
|
@ -143,7 +143,7 @@ jobs:
|
|||
"env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.configure }}",
|
||||
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
||||
"commit": "${{ github.sha }}",
|
||||
"branch": "${{ github.ref }}".split('/').reverse()[0]
|
||||
"branch": "${{ github.ref_name }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
||||
|
|
Loading…
Reference in a new issue