Skip to content

Commit aa4e792

Browse files
committed
Set the env only if main
1 parent 0bdb9a5 commit aa4e792

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
jobs:
1010
rake:
1111
runs-on: ubuntu-latest
12-
env:
13-
SHARE: ${{ github.ref_name == 'main' && '1' || '' }}
1412

1513
strategy:
1614
matrix:
@@ -19,6 +17,10 @@ jobs:
1917
'jruby-head']
2018

2119
steps:
20+
- name: Set Share Env
21+
if: github.ref_name == 'main'
22+
run: |
23+
echo "SHARE=1" >> $GITHUB_ENV
2224
- uses: actions/checkout@v3
2325
- name: Set up Ruby ${{ matrix.ruby-version }}
2426
uses: ruby/setup-ruby@v1

0 commit comments

Comments
 (0)