-
Notifications
You must be signed in to change notification settings - Fork 4
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 #40 from StartAutomating/NanoLeaf-Improvement-And-…
…GitPub Nano leaf improvement and GitPub
- Loading branch information
Showing
10 changed files
with
233 additions
and
49 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
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
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,32 @@ | ||
@{ | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
#requires -Module PSDevOps | ||
Push-Location $PSScriptRoot | ||
|
||
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish | | ||
Import-BuildStep -Module LightScript | ||
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildModule | | ||
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru | ||
|
||
New-GitHubWorkflow -Name "Run HelpOut" -On Push -Job HelpOut | | ||
Set-Content .\.github\workflows\UpdateDocs.yml -Encoding UTF8 -PassThru | ||
|
||
New-GitHubWorkflow -Name "Run EZOut" -On Push -Job RunEZOut | | ||
Set-Content .\.github\workflows\RunEZOut.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 | ||
|
||
Pop-Location |
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
Oops, something went wrong.