Use ${{}} for if statement

This commit is contained in:
Hiroshi SHIBATA 2021-08-02 11:39:38 +09:00
parent 7f4e86804d
commit 8b466ea5fc
Notes: git 2021-08-02 12:40:16 +09:00
9 changed files with 21 additions and 21 deletions

View File

@ -42,4 +42,4 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}

View File

@ -13,12 +13,12 @@ jobs:
set -x
sudo apt-get update -q || :
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev bison autoconf ruby
if: "contains(matrix.os, 'ubuntu')"
if: ${{ contains(matrix.os, 'ubuntu') }}
- name: Install libraries
run: |
brew upgrade
brew install gmp libffi openssl@1.1 zlib autoconf automake libtool readline
if: "contains(matrix.os, 'macos')"
if: ${{ contains(matrix.os, 'macos') }}
- name: git config
run: |
git config --global advice.detachedHead 0
@ -42,4 +42,4 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}

View File

@ -189,15 +189,15 @@ jobs:
- run: $make leaked-globals
- run: $make test
- run: $make install
if: "matrix.entry.name == '-O3'"
if: ${{ matrix.entry.name == '-O3' }}
- run: /usr/local/bin/gem install --no-doc timezone tzinfo
if: "matrix.entry.name == '-O3'"
if: ${{ matrix.entry.name == '-O3' }}
- run: $make test-tool
if: "matrix.entry.name == '-O3'"
if: ${{ matrix.entry.name == '-O3' }}
- run: $make test-all TESTS='-- ruby -ext-'
if: "matrix.entry.name == '-O3'"
if: ${{ matrix.entry.name == '-O3' }}
- run: $make test-spec
if: "matrix.entry.name == '-O3'"
if: ${{ matrix.entry.name == '-O3' }}
- uses: k0kubun/action-slack@v2.0.0
with:
@ -211,7 +211,7 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}
defaults:
run:

View File

@ -34,9 +34,9 @@ jobs:
- run: make $JOBS incs
- run: make $JOBS
- run: make leaked-globals
if: matrix.test_task == 'check'
if: ${{ matrix.test_task == 'check' }}
- run: make prepare-gems
if: matrix.test_task == 'check'
if: ${{ matrix.test_task == 'check' }}
- run: make $JOBS -s ${{ matrix.test_task }}
timeout-minutes: 60
env:
@ -54,7 +54,7 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}
defaults:
run:

View File

@ -136,7 +136,7 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}
defaults:
run:

View File

@ -70,7 +70,7 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}
defaults:
run:

View File

@ -35,4 +35,4 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}

View File

@ -48,13 +48,13 @@ jobs:
- run: make $JOBS incs
- run: make $JOBS
- run: make leaked-globals
if: matrix.test_task == 'check'
if: ${{ matrix.test_task == 'check' }}
- run: make prepare-gems
if: matrix.test_task == 'check'
if: ${{ matrix.test_task == 'check' }}
- name: Create dummy files in build dir
run: |
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'
if: matrix.test_task == 'check'
if: ${{ matrix.test_task == 'check' }}
- run: make $JOBS -s ${{ matrix.test_task }}
timeout-minutes: 30
env:
@ -72,7 +72,7 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}
defaults:
run:

View File

@ -92,7 +92,7 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
if: ${{ failure() && github.event_name == 'push' }}
defaults:
run: