Skip to content

Commit c3033a2

Browse files
Merge pull request #255 from StartAutomating/gitting-cooler
ugit 0.4.3: Gitting cooler
2 parents a95bdd1 + 651dcf3 commit c3033a2

File tree

113 files changed

+1319
-1115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1319
-1115
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#requires -Module PSDevOps
2+
Import-BuildStep -SourcePath (
3+
Join-Path $PSScriptRoot 'GitHub'
4+
) -BuildSystem GitHubAction
5+
Push-Location ($PSScriptRoot | Split-Path)
6+
New-GitHubAction -Name "UseUGit" -Description 'Updated Git' -Action UGitAction -Icon git-merge -OutputPath .\action.yml
7+
Pop-Location
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#requires -Module PSDevOps
2-
Push-Location $PSScriptRoot
3-
Import-BuildStep -ModuleName ugit
2+
Import-BuildStep -SourcePath (
3+
Join-Path $PSScriptRoot 'GitHub'
4+
) -BuildSystem GitHubWorkflow
5+
6+
Push-Location ($PSScriptRoot | Split-Path)
7+
48
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis,
59
TestPowerShellOnLinux,
610
TagReleaseAndPublish,
@@ -17,4 +21,4 @@ New-GitHubWorkflow -On Demand -Name ugit-psa -Job SendPSA -OutputPath .\.github\
1721
"AT_PROTOCOL_APP_PASSWORD" = '${{ secrets.AT_PROTOCOL_APP_PASSWORD }}'
1822
}
1923

20-
Pop-Location
24+
Pop-Location
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#requires -Module HelpOut
22

3-
Push-Location $PSScriptRoot
3+
Push-Location ($PSScriptRoot | Split-Path)
44
$ugitLoaded = Get-Module ugit
55
if (-not $ugitLoaded) {
66
$ugitLoaded = Get-ChildItem -Recurse -Filter "*.psd1" | Where-Object Name -like 'ugit*' | Import-Module -Name { $_.FullName } -Force -PassThru

ugit.PSSVG.ps1 renamed to Build/ugit.PSSVG.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#requires -Module PSSVG
2-
2+
Push-Location ($PSScriptRoot | Split-Path)
33
$psChevron =
44
svg.symbol -Id psChevron -Content @(
55
svg.polygon -Points (@(
@@ -12,7 +12,7 @@ $psChevron =
1212
) -join ' ')
1313
) -ViewBox 100, 100 -PreserveAspectRatio $false
1414

15-
$assetsPath = Join-Path $PSScriptRoot assets
15+
$assetsPath = Join-Path $pwd assets
1616

1717
if (-not (Test-Path $assetsPath)) {
1818
$null = New-item -ItemType Directory -Path $assetsPath
@@ -26,4 +26,6 @@ svg -ViewBox 300, 100 @(
2626
SVG.tspan -FontSize .5em -Content 'u'
2727
SVG.tspan -FontSize 1em -Content 'git' -Dx -.25em
2828
) -FontFamily 'serif' -Fill '#4488ff' -FontSize 4em
29-
) -OutputPath (Join-Path $assetsPath ugit.svg)
29+
) -OutputPath (Join-Path $assetsPath ugit.svg)
30+
31+
Pop-Location
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#require -Module Piecemeal
2-
Push-Location $PSScriptRoot
2+
Push-Location ($PSScriptRoot | Split-Path | Join-Path -ChildPath "Commands")
33

44
Install-Piecemeal -ExtensionModule 'ugit' -ExtensionModuleAlias 'git' -ExtensionNoun 'UGitExtension' -ExtensionTypeName 'ugit.extension' -OutputPath '.\Get-UGitExtension.ps1'
55

ugit.ezout.ps1 renamed to Build/ugit.ezout.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Install-Module EZOut or https://github.com/StartAutomating/EZOut
33
$myFile = $MyInvocation.MyCommand.ScriptBlock.File
44
$myModuleName = 'ugit'
5-
$myRoot = $myFile | Split-Path
5+
$myRoot = $myFile | Split-Path | Split-Path
66
Push-Location $myRoot
77
$formatting = @(
88
# Add your own Write-FormatView here,

0 commit comments

Comments
 (0)