Skip to content

Commit

Permalink
Inject token
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 12, 2024
1 parent d0a7b46 commit fc2a7f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/setup-vcpkg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ description: Initialize vcpkg
# required: false
# default: latest
# type: string
inputs:
token:
description: Token to use for nuget
required: false
default: ''
type: string

runs:
using: composite
Expand All @@ -27,4 +33,4 @@ runs:
iex (iwr -useb https://aka.ms/vcpkg-init.ps1)
vcpkg fetch nuget
C:\ProgramData\Chocolatey\bin\nuget.exe sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $GITHUB_ACTOR -Password ${{ secrets.GITHUB_TOKEN }} -StorePasswordInClearText
C:\ProgramData\Chocolatey\bin\nuget.exe sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $GITHUB_ACTOR -Password ${{ inputs.token }} -StorePasswordInClearText
2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:

- name: Setup vcpkg
uses: ./.github/actions/setup-vcpkg
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: 🌋 Build
run: |
Expand Down

0 comments on commit fc2a7f3

Please sign in to comment.