Skip to content

Commit 327444a

Browse files
authored
Merge pull request #212 from fastruby/feature/share-on-main
Set the SHARE env variable only if current branch is main
2 parents acb4410 + aa4e792 commit 327444a

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: "1"
1412

1513
strategy:
1614
matrix:
@@ -19,6 +17,10 @@ jobs:
1917
'jruby-head', 'truffleruby-22.3.0', 'truffleruby-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)