Skip to content

Commit

Permalink
Trying out extracted action
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Didrichsen <[email protected]>
  • Loading branch information
gavindidrichsen committed Mar 22, 2024
1 parent 2a4da54 commit e78f1b5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/actions/install-pdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .github/actions/install-pdk/action.yml
name: 'Install PDK'
description: 'Installs winget and PDK'
inputs:
GITHUB_TOKEN:
description: 'GitHub token'
required: true
pdk_version:
description: 'PDK version to install'
required: true
runs:
using: 'composite'
steps:
- name: Install winget
uses: Cyberboss/install-winget@v1
with:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
- name: Install PDK
run: |
winget install pdk --version=${{ inputs.pdk_version }} --silent --accept-source-agreements
shell: powershell
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,11 @@ jobs:
shell: powershell
modules-to-cache: ${{ env.module_cache }}

- name: Install winget
uses: Cyberboss/install-winget@v1
- name: Use my custom action
uses: ./.github/actions/install-pdk
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "install pdk"
run: |
winget install pdk --version=${{ env.pdk_version }} --silent --accept-source-agreements
pdk_version: '1.18.1'

- name: "configure winrm"
run: |
Expand Down

0 comments on commit e78f1b5

Please sign in to comment.