diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-02 11:39:38 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-02 12:39:50 +0900 |
commit | 8b466ea5fc00dcd400a57cc03db4537f0cb8fc81 (patch) | |
tree | 599dd3e18fbe79079f16efc1fae47fd89340e8c3 /.github | |
parent | 7f4e86804d426d79807cc038fe4444f7c65f5c4a (diff) | |
download | ruby-8b466ea5fc00dcd400a57cc03db4537f0cb8fc81.tar.gz |
Use `${{}}` for if statement
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/baseruby.yml | 2 | ||||
-rw-r--r-- | .github/workflows/check_dependencies.yml | 6 | ||||
-rw-r--r-- | .github/workflows/compilers.yml | 12 | ||||
-rw-r--r-- | .github/workflows/macos.yml | 6 | ||||
-rw-r--r-- | .github/workflows/mingw.yml | 2 | ||||
-rw-r--r-- | .github/workflows/mjit.yml | 2 | ||||
-rw-r--r-- | .github/workflows/spec_guards.yml | 2 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 8 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 2 |
9 files changed, 21 insertions, 21 deletions
diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml index 11f71e0cdb..532d4a998d 100644 --- a/.github/workflows/baseruby.yml +++ b/.github/workflows/baseruby.yml @@ -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' }} diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml index 77227bb7f9..645da4000b 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -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' }} diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index ea19c016fa..f267ee26ae 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -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: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b69b0fbe25..0a2d7ea73b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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: diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 6787f96b6d..8f5a8e657f 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -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: diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 99282cf591..63011e78d0 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -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: diff --git a/.github/workflows/spec_guards.yml b/.github/workflows/spec_guards.yml index f921d66c75..61ebeb33c1 100644 --- a/.github/workflows/spec_guards.yml +++ b/.github/workflows/spec_guards.yml @@ -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' }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f7b07ca80b..e148b76cbe 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -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: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fdcccff11a..6adc4fcd4c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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: |