Skip to content

Commit

Permalink
ci: vcpkg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 27, 2023
1 parent 2b3ef55 commit 7c234f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildtools/classes/Packager/Vcpkg.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ function secondBuild(string $portFileContent): bool
chdir('/usr/local/share/vcpkg');
$this->sudo('./vcpkg format-manifest ./ports/dpp/vcpkg.json');
/* Note: We commit this in /usr/local, but we never push it (we can't) */
$this->git('config --global user.email "[email protected]"');
$this->git('config --global user.name "DPP VCPKG Bot"');
$this->git('add .', true);
$this->git('commit -m "[bot] VCPKG info update"', true);
$this->sudo('/usr/local/share/vcpkg/vcpkg x-add-version dpp');
Expand All @@ -261,6 +263,8 @@ function secondBuild(string $portFileContent): bool
system('cp -v -R /usr/local/share/vcpkg/versions/d-/dpp.json ./vcpkg/versions/d-/dpp.json');

echo GREEN . "Commit and push changes to master branch\n" . WHITE;
$this->git('config --global user.email "[email protected]"');
$this->git('config --global user.name "DPP VCPKG Bot"');
$this->git('add .');
$this->git('commit -m "[bot] VCPKG info update [skip ci]"');
$this->git('config pull.rebase false');
Expand Down

0 comments on commit 7c234f6

Please sign in to comment.