Skip to content

Commit b17cddf

Browse files
Merge pull request #250 from StartAutomating/PipeScript-GitPub-Integration
Adding OnIssue.yml (Fixes #249)
2 parents 4be6b53 + dae13e3 commit b17cddf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/OnIssue.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
name: OnIssueChanged
3+
on:
4+
issues:
5+
workflow_dispatch:
6+
jobs:
7+
RunGitPub:
8+
runs-on: ubuntu-latest
9+
if: ${{ success() }}
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v2
13+
- name: Use GitPub Action
14+
uses: StartAutomating/GitPub@main
15+
id: GitPub
16+
with:
17+
TargetBranch: edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))
18+
CommitMessage: Posting with GitPub [skip ci]
19+
PublishParameters: |
20+
{
21+
"Get-GitPubIssue": {
22+
"UserName": '${{github.repository_owner}}',
23+
"Repository": "PipeScript"
24+
},
25+
"Get-GitPubRelease": {
26+
"UserName": '${{github.repository_owner}}',
27+
"Repository": "PipeScript"
28+
},
29+
"Publish-GitPubJekyll": {
30+
"OutputPath": "docs/_posts"
31+
}
32+
}
33+

0 commit comments

Comments
 (0)