Skip to content

Commit c3eae47

Browse files
Add packer version environment variable to CI workflows
1 parent 41f7c3c commit c3eae47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/examples.yml

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ jobs:
8888
fi
8989
- name: Increase the amount of inotify watchers
9090
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
91+
- name: Set packer version environment variable
92+
run: |
93+
echo "CI_PACKER_VERSION=${{ matrix.versions == 'oldest' && 'old' || 'new' }}" >> $GITHUB_ENV
9194
- name: Main CI
9295
if: steps.changed-files.outputs.any_changed == 'true'
9396
run: bundle exec rake run_rspec:${{ matrix.versions == 'oldest' && 'web' || 'shaka' }}packer_examples

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ jobs:
190190
git config user.name "Your Name"
191191
git commit -am "stop generators from complaining about uncommitted code"
192192
- run: cd spec/dummy && bundle info shakapacker
193+
- name: Set packer version environment variable
194+
run: |
195+
echo "CI_PACKER_VERSION=${{ matrix.versions == 'oldest' && 'old' || 'new' }}" >> $GITHUB_ENV
193196
- name: Main CI
194197
run: bundle exec rake run_rspec:all_dummy
195198
- name: Store test results

0 commit comments

Comments
 (0)