Skip to content

Commit a4861d6

Browse files
authored
perf: synchronize remote before cloning
1 parent 7855ea1 commit a4861d6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

check.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ Import-Module powershell-yaml
4444
Invoke-NativeCommand gh auth setup-git
4545
Invoke-NativeCommand git config --global user.email "kieseljake+rust-winget-bot@live.com"
4646
Invoke-NativeCommand git config --global user.name "Rust-Winget-Bot"
47+
Invoke-NativeCommand gh repo sync "Rust-Winget-Bot/winget-pkgs"
4748
Invoke-NativeCommand gh repo clone "Rust-Winget-Bot/winget-pkgs" "--" --depth 1
4849
Set-Location winget-pkgs
49-
Invoke-NativeCommand git pull upstream master
50-
Invoke-NativeCommand git push
5150
$yamlHeaderInstaller = @'
5251
# Auto-generated by Rust-Winget-Bot (https://github.com/Rust-Winget-Bot)
5352
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.10.0.schema.json

0 commit comments

Comments
 (0)