From c323c37b3104cee7db31877b09b637e68d04b918 Mon Sep 17 00:00:00 2001 From: Ben Dean Date: Fri, 19 May 2023 21:06:12 -0400 Subject: [PATCH] allow the chef workstation version to be passed to install chef Signed-off-by: Ben Dean --- .github/workflows/lint-unit.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/lint-unit.yml b/.github/workflows/lint-unit.yml index 0921d9c..2926803 100644 --- a/.github/workflows/lint-unit.yml +++ b/.github/workflows/lint-unit.yml @@ -11,6 +11,10 @@ name: Lint & Unit test required: false type: string default: "ubuntu-latest" + chef_workstation_version: + required: false + type: string + default: "latest" jobs: rspec: @@ -21,6 +25,8 @@ jobs: uses: actions/checkout@v3 - name: Install Chef uses: actionshub/chef-install@2.0.4 + with: + version: ${{ inputs.chef_workstation_version }} - name: Install Gems run: chef gem install -N "${{ inputs.gems }}" if: ${{ inputs.gems }} @@ -44,6 +50,8 @@ jobs: uses: actions/checkout@v3 - name: Install Chef uses: actionshub/chef-install@2.0.4 + with: + version: ${{ inputs.chef_workstation_version }} - name: Run Cookstyle run: chef exec cookstyle --display-cop-names --extra-details env: