diff options
author | Jared Kauppila <Jared.Kauppila@sentry.com> | 2021-10-26 12:07:48 -0500 |
---|---|---|
committer | Jared Kauppila <Jared.Kauppila@sentry.com> | 2021-10-26 12:08:13 -0500 |
commit | 3817534dffb6a903b8ce195abea2f4739b026dc9 (patch) | |
tree | b89bebc91ecadab866198548b5e6132373b8f565 /.github/workflows | |
parent | 05986bd3460175a821999701b43d40c7c705e491 (diff) | |
download | chef-3817534dffb6a903b8ce195abea2f4739b026dc9.tar.gz |
Reference `GITHUB_REPOSITORY` if available when pulling Infra Client source code during tests to enable forked builds
Signed-off-by: Jared Kauppila <Jared.Kauppila@sentry.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/kitchen.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml index 2e51c21ab6..fe7afc493f 100644 --- a/.github/workflows/kitchen.yml +++ b/.github/workflows/kitchen.yml @@ -31,7 +31,7 @@ jobs: $env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;" + $env:PATH $env:OHAI_VERSION = ( Select-String -Path .\Gemfile.lock -Pattern '(?<=ohai \()\d.*(?=\))' | ForEach-Object { $_.Matches[0].Value } ) gem install appbundler appbundle-updater --no-doc - appbundle-updater chef chef $env:GITHUB_SHA --tarball --github chef/chef + appbundle-updater chef chef $env:GITHUB_SHA --tarball --github $env:GITHUB_REPOSITORY Write-Output "Installed Chef / Ohai release:" chef-client -v ohai -v @@ -75,7 +75,7 @@ jobs: run: | OHAI_VERSION=$(sed -n '/ohai .[0-9]/{s/.*(//;s/)//;p;}' Gemfile.lock) sudo /opt/chef/embedded/bin/gem install appbundler appbundle-updater --no-doc - sudo /opt/chef/embedded/bin/appbundle-updater chef chef $GITHUB_SHA --tarball --github chef/chef + sudo /opt/chef/embedded/bin/appbundle-updater chef chef $GITHUB_SHA --tarball --github $GITHUB_REPOSITORY echo "Installed Chef / Ohai release:" /opt/chef/bin/chef-client -v /opt/chef/bin/ohai -v |