Skip to content

Commit adc654e

Browse files
committed
πŸ’š Skip every step if indicated
- actions/runner#662 - actions/toolkit#146
1 parent 9898e37 commit adc654e

File tree

11 files changed

+59
-22
lines changed

11 files changed

+59
-22
lines changed

β€Ž.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ concurrency:
3636
jobs:
3737
coverage:
3838
name: Code Coverage on ${{ matrix.ruby }}@current
39-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
39+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
4040
runs-on: ubuntu-latest
4141
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
4242
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps

β€Ž.github/workflows/current-runtime-heads.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ concurrency:
3030
jobs:
3131
test:
3232
name: Tests ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
33-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
33+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3434
runs-on: ubuntu-latest
3535
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3636
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps
@@ -56,7 +56,6 @@ jobs:
5656

5757
# jruby-10.0 (targets Ruby 3.4 compatibility)
5858
- ruby: "jruby"
59-
if: ${{ !env.ACT }}
6059
appraisal_name: "dep-heads"
6160
exec_cmd: "rake test"
6261
gemfile: "Appraisal.root"
@@ -66,9 +65,11 @@ jobs:
6665

6766
steps:
6867
- name: Checkout
68+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
6969
uses: actions/checkout@v4
7070

7171
- name: Setup Ruby & RubyGems
72+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
7273
uses: ruby/setup-ruby@v1
7374
with:
7475
ruby-version: ${{ matrix.ruby }}
@@ -80,8 +81,11 @@ jobs:
8081
# We need to do this first to get appraisal installed.
8182
# NOTE: This does not use the primary Gemfile at all.
8283
- name: Install Root Appraisal
84+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8385
run: bundle
8486
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
87+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8588
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle
8689
- name: Run ${{ matrix.exec_cmd }} on ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
90+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8791
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle exec ${{ matrix.exec_cmd }}

β€Ž.github/workflows/current.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ concurrency:
2929
jobs:
3030
test:
3131
name: Tests ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
32-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
32+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3333
runs-on: ubuntu-latest
3434
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3535
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps
@@ -55,7 +55,6 @@ jobs:
5555

5656
# jruby-10.0 (targets Ruby 3.4 compatibility)
5757
- ruby: "jruby"
58-
if: ${{ !env.ACT }}
5958
appraisal_name: "r3"
6059
exec_cmd: "rake test"
6160
gemfile: "Appraisal.root"
@@ -64,9 +63,11 @@ jobs:
6463

6564
steps:
6665
- name: Checkout
66+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
6767
uses: actions/checkout@v4
6868

6969
- name: Setup Ruby & RubyGems
70+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
7071
uses: ruby/setup-ruby@v1
7172
with:
7273
ruby-version: ${{ matrix.ruby }}
@@ -78,8 +79,11 @@ jobs:
7879
# We need to do this first to get appraisal installed.
7980
# NOTE: This does not use the main Gemfile at all.
8081
- name: Install Root Appraisal
82+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8183
run: bundle
8284
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
85+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8386
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle
8487
- name: Run ${{ matrix.exec_cmd }} on ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
88+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8589
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle exec ${{ matrix.exec_cmd }}

β€Ž.github/workflows/heads.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
test:
3030
name: Tests ${{ matrix.ruby }}@${{ matrix.appraisal_name }}${{ matrix.name_extra || '' }}
31-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3232
runs-on: ubuntu-latest
3333
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3434
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps
@@ -56,7 +56,6 @@ jobs:
5656

5757
# jruby-head
5858
- ruby: "jruby-head"
59-
if: ${{ !env.ACT }}
6059
appraisal_name: "heads"
6160
exec_cmd: "rake test"
6261
gemfile: "Appraisal.root"
@@ -65,9 +64,11 @@ jobs:
6564

6665
steps:
6766
- name: Checkout
67+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
6868
uses: actions/checkout@v4
6969

7070
- name: Setup Ruby & RubyGems
71+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
7172
uses: ruby/setup-ruby@v1
7273
with:
7374
ruby-version: ${{ matrix.ruby }}
@@ -79,8 +80,11 @@ jobs:
7980
# We need to do this first to get appraisal installed.
8081
# NOTE: This does not use the main Gemfile at all.
8182
- name: Install Root Appraisal
83+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8284
run: bundle
8385
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
86+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8487
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle
8588
- name: Run ${{ matrix.exec_cmd }} on ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
89+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
8690
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle exec ${{ matrix.exec_cmd }}

β€Ž.github/workflows/jruby.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
test:
3030
name: Tests ${{ matrix.ruby }} ${{ matrix.appraisal_name }}${{ matrix.name_extra || '' }}
31-
if: ${{ !env.ACT && !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
31+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3232
runs-on: ubuntu-22.04
3333
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3434
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps
@@ -46,9 +46,11 @@ jobs:
4646

4747
steps:
4848
- name: Checkout
49+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
4950
uses: actions/checkout@v4
5051

5152
- name: Setup Ruby & RubyGems
53+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
5254
uses: ruby/setup-ruby@v1
5355
with:
5456
ruby-version: ${{ matrix.ruby }}
@@ -60,8 +62,11 @@ jobs:
6062
# We need to do this first to get appraisal installed.
6163
# NOTE: This does not use the main Gemfile at all.
6264
- name: Install Root Appraisal
65+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
6366
run: bundle
6467
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
68+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
6569
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle
6670
- name: Run ${{ matrix.exec_cmd }} on ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
71+
if: ${{ !env.ACT || !startsWith(matrix.ruby, 'jruby') }}
6772
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle exec ${{ matrix.exec_cmd }}

β€Ž.github/workflows/legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
test:
3030
name: Tests ${{ matrix.ruby }} ${{ matrix.appraisal_name }}${{ matrix.name_extra || '' }}
31-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3232
runs-on: ubuntu-22.04
3333
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3434
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps

β€Ž.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
jobs:
2626
rubocop:
2727
name: Style on ${{ matrix.ruby }}@current
28-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
28+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
2929
runs-on: ubuntu-latest
3030
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3131
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps

β€Ž.github/workflows/supported.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
test:
3030
name: Tests ${{ matrix.ruby }} ${{ matrix.appraisal_name }}${{ matrix.name_extra || '' }}
31-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3232
runs-on: ubuntu-latest
3333
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3434
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps

β€Ž.github/workflows/unsupported.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
jobs:
2929
test:
3030
name: Tests ${{ matrix.ruby }} ${{ matrix.appraisal_name }}${{ matrix.name_extra || '' }}
31-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
31+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
3232
runs-on: ubuntu-22.04
3333
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3434
env: # $BUNDLE_GEMFILE - set at job level, so applies to all steps

β€Ž.idea/workspace.xml

Lines changed: 26 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)