-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from StartAutomating/Eventful-Improvements
Eventful improvements
- Loading branch information
Showing
15 changed files
with
343 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
name: OnIssueChanged | ||
on: | ||
issues: | ||
workflow_dispatch: | ||
jobs: | ||
RunGitPub: | ||
runs-on: ubuntu-latest | ||
if: ${{ success() }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
- name: Use GitPub Action | ||
uses: StartAutomating/GitPub@main | ||
id: GitPub | ||
with: | ||
TargetBranch: edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", "")) | ||
CommitMessage: Posting with GitPub [skip ci] | ||
PublishParameters: | | ||
{ | ||
"Get-GitPubIssue": { | ||
"Repository": '${{github.repository}}', | ||
}, | ||
"Get-GitPubRelease": { | ||
"Repository": '${{github.repository}}', | ||
}, | ||
"Publish-GitPubJekyll": { | ||
"OutputPath": "docs/_posts" | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<# | ||
.Synopsis | ||
Sends events when a command is not found. | ||
.Description | ||
Sends events when a command is not found. | ||
Handling this event can resolve any unknown command. | ||
.EXAMPLE | ||
On@CommandNotFound | ||
.EXAMPLE | ||
On@CommandNotFound -Then { $event | Out-Host } | ||
#> | ||
param() | ||
|
||
process { | ||
$global:ExecutionContext.SessionState.InvokeCommand.CommandNotFoundAction = { | ||
New-Event -SourceIdentifier "PowerShell.CommandNotFound" -MessageData $notFoundArgs -Sender $global:ExecutionContext -EventArguments $notFoundArgs | ||
} | ||
|
||
[PSCustomObject]@{ | ||
SourceIdentifier = "PowerShell.CommandNotFound" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#requires -Module PSDevOps | ||
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, HelpOut, RunEZOut -Environment @{ | ||
Import-BuildStep -Module Eventful | ||
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildEventful -Environment @{ | ||
NoCoverage = $true | ||
}| | ||
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru | ||
|
||
New-GitHubWorkflow -On Issue, Demand -Job RunGitPub -Name OnIssueChanged | | ||
Set-Content (Join-Path $PSScriptRoot .github\workflows\OnIssue.yml) -Encoding UTF8 -PassThru | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#requires -Module PSSVG | ||
|
||
$assetsPath = Join-Path $PSScriptRoot Assets | ||
|
||
if (-not (Test-Path $assetsPath)) { | ||
$null = New-Item -ItemType Directory -path $assetsPath -Force | ||
} | ||
=<svg> -content $( | ||
$commonParameters = @{ | ||
Fill = '#4488FF' | ||
Stroke = 'black' | ||
StrokeWidth = '0.05' | ||
} | ||
|
||
=<svg.symbol> -Id psChevron -Content @( | ||
=<svg.polygon> -Points (@( | ||
"40,20" | ||
"45,20" | ||
"60,50" | ||
"35,80" | ||
"32.5,80" | ||
"55,50" | ||
) -join ' ') | ||
) -ViewBox 100, 100 | ||
|
||
|
||
=<svg.use> -Href '#psChevron' -X -25% -Y 35% @commonParameters -Height 30% -Opacity .9 | ||
# =<svg.text> -Text '>' -X 20 -Y 50 -FontSize 48 -Rotate -7 -FontFamily monospace @commonParameters | ||
=<svg.text> -Text @( | ||
=<svg.tspan> -Content '@' -Dx -8.5em -FontFamily sans-serif -FontSize 4 -DominantBaseline 'middle' | ||
=<svg.tspan> -Content 'eventful' -TextAnchor 'left' -FontFamily monospace -Dx -.4em -DominantBaseline 'middle' -Dy 0em | ||
|
||
# =<svg.tspan> -Content '@' -Dx -8.5em -FontFamily sans-serif -FontSize 4 -DominantBaseline 'middle' -Dy -1em | ||
) -X 40% -Y 50% -FontSize 24 -FontFamily monospace @commonParameters | ||
|
||
<#=<svg.text> -Text @( | ||
=<svg.tspan> -Content 'eventful' -TextAnchor 'left' -FontFamily monospace -Dx -1em | ||
) -X 40% -Y 56% -FontSize 24 -FontFamily monospace @commonParameters | ||
=<svg.text> -Text @( | ||
=<svg.tspan> -Content '@' -TextAnchor 'right' -FontFamily sans-serif -Dx -1em | ||
) -X 25% -Y 53% -FontSize 12 -FontFamily monospace @commonParameters #> | ||
# =<svg.text> -Text 'SVG' -X 70% -Y 53.5% -FontSize 36 -FontFamily monospace -FontStretch "10%" -FontWeight 150 @commonParameters -DominantBaseline 'middle' -TextAnchor 'middle' -Opacity .9 | ||
|
||
) -ViewBox 0, 0, 200, 100 -OutputPath $( | ||
Join-Path (Join-Path $PSScriptRoot Assets) Eventful.svg | ||
) |
Oops, something went wrong.