This script can synchronize your modules & scripts from GitHub to the PowerShell Gallery
- File Name : Invoke-PowershellGallerySync.ps1
- Author : Thomas ILLIET, [email protected]
- Date : 2018-01-06
- Last Update : 2018-01-10
- Tested Date : 2018-01-10
- Version : 1.1.0
Install-Script -Name Invoke-PowershellGallerySync
Json database file ( you can find example file in my repository )
PS> Invoke-PowershellGallerySync -Database Database.json | ft
Name Github Gallery Type Status Message
---- ------ ------- ---- ------ -------
Invoke-PowershellGallerySync 1.0.0 1.0.0 Script Success No Update
PS> Invoke-PowershellGallerySync -Database Database.json -debug | ft
DEBUG: Debug Output activated
DEBUG: This script was called with the -Debug parameter.
DEBUG: Loading the configuration from the file : Database.json
DEBUG: Item Processing (1) :
DEBUG: + Invoke-PowershellGallerySync
DEBUG: - Github : 1.0.0
DEBUG: - Gallery : 1.0.0
DEBUG: - Result : Success - No Update
Name Github Gallery Type Status Message
---- ------ ------- ---- ------ -------
Invoke-PowershellGallerySync 1.0.0 1.0.0 Script Success No Update