summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-07 17:27:06 -0700
committerTim Smith <tsmith@chef.io>2021-07-26 18:43:52 -0700
commit852d0dfff9f76de48b6664cd6a15dd1c43b68c75 (patch)
tree81e6c1eb2ffdcd6296ce1f68a7a964b04f014bec
parent8fdaa897a195d013aeec6a54eab644a1e9658b2d (diff)
downloadchef-852d0dfff9f76de48b6664cd6a15dd1c43b68c75.tar.gz
Install chef via the github action
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.github/workflows/kitchen.yml26
1 files changed, 8 insertions, 18 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml
index 501ff9d581..ed99984c9d 100644
--- a/.github/workflows/kitchen.yml
+++ b/.github/workflows/kitchen.yml
@@ -16,15 +16,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- - name: 'Install Chef/Ohai from Omnitruck'
- id: install_chef
- run: |
- . { Invoke-WebRequest -useb https://omnitruck.chef.io/install.ps1 } | Invoke-Expression; Install-Project -project chef -channel current
- $env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;" + $env:PATH
- chef-client -v
- ohai -v
- rake --version
- bundle -v
+ - name: Install Infra Client from current channel
+ uses: actionshub/chef-install@master
+ with:
+ channel: current
- name: 'Upgrade Chef/Ohai via Appbundler'
id: upgrade
run: |
@@ -55,15 +50,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- - name: 'Install Chef/Ohai from Omnitruck'
- id: install_chef
- run: |
- brew install coreutils
- curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -c current
- /opt/chef/bin/chef-client -v
- /opt/chef/bin/ohai -v
- /opt/chef/embedded/bin/rake --version
- /opt/chef/embedded/bin/bundle -v
+ - name: Install Infra Client from current channel
+ uses: actionshub/chef-install@master
+ with:
+ channel: current
- name: 'Upgrade Chef/Ohai via Appbundler'
id: upgrade
run: |