Skip to content

Commit

Permalink
chore: ugit GitPub cleanup ( Fixes #310 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 28, 2024
1 parent e3f0323 commit 1aae246
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

name: OnIssueChanged
name: GitPub
on:
issues:
workflow_dispatch:
jobs:
RunGitPub:
Expand All @@ -14,7 +13,7 @@ jobs:
uses: StartAutomating/GitPub@main
id: GitPub
with:
TargetBranch: edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))
TargetBranch: edits-$([DateTime]::Now.ToString("o") -replace "T.+$")
CommitMessage: Posting with GitPub [skip ci]
PublishParameters: |
{
Expand Down
2 changes: 1 addition & 1 deletion Build/GitHub/Jobs/RunGitPub.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
uses = 'StartAutomating/GitPub@main'
id = 'GitPub'
with = @{
TargetBranch = 'edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))'
TargetBranch = 'edits-$([DateTime]::Now.ToString("o") -replace "T.+$")'
CommitMessage = 'Posting with GitPub [skip ci]'
PublishParameters = @'
{
Expand Down
3 changes: 1 addition & 2 deletions Build/ugit.GitHubWorkflow.PSDevOps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest
"IMAGE_NAME" = '${{ github.repository }}'
})

New-GitHubWorkflow -On Issue,
Demand -Job RunGitPub -Name OnIssueChanged -OutputPath .\.github\workflows\OnIssue.yml
New-GitHubWorkflow -On Demand -Job RunGitPub -Name GitPub -OutputPath .\.github\workflows\GitPub.yml

New-GitHubWorkflow -On Demand -Name ugit-psa -Job SendPSA -OutputPath .\.github\workflows\SendPSA.yml -Env @{
"AT_PROTOCOL_HANDLE" = "mrpowershell.bsky.social"
Expand Down

0 comments on commit 1aae246

Please sign in to comment.