Skip to content

Commit

Permalink
(build) Fixes Missing Function Call in Start-C4bJenkins
Browse files Browse the repository at this point in the history
Also ensures we're grabbing the latest version from the PR?
  • Loading branch information
JPRuskin committed Sep 23, 2024
1 parent 423113b commit 6f4373d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: "refs/pull/${{ github.event.number }}/merge"

- name: Create License File
run: |
Expand Down Expand Up @@ -141,6 +143,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: "refs/pull/${{ github.event.number }}/merge"

- name: Login to Azure
uses: azure/login@v2
Expand Down
5 changes: 4 additions & 1 deletion Start-C4bJenkinsSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ param(
[string]$HostName = $env:ComputerName,

# API key of your Nexus repo, for Chocolatey Jenkins jobs to use
[string]$NuGetApiKey = $(Get-ChocoEnvironmentProperty NuGetApiKey -AsPlainText)
[string]$NuGetApiKey = $(
if (-not (Get-Command Get-ChocoEnvironmentProperty -ErrorAction SilentlyContinue)) {. $PSScriptRoot\scripts\Get-Helpers.ps1}
Get-ChocoEnvironmentProperty NuGetApiKey -AsPlainText
)
)
process {
$DefaultEap = $ErrorActionPreference
Expand Down

0 comments on commit 6f4373d

Please sign in to comment.