Skip to content

Commit

Permalink
Merge pull request #42 from rerost/rerost/change-interface
Browse files Browse the repository at this point in the history
Change input interface
  • Loading branch information
Hazumi Ichijo authored Jan 16, 2021
2 parents 9f15c69 + 5e3359b commit 292d781
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
steps:
- uses: rerost/[email protected]
with:
template-issue-url: https://github.com/rerost/issue-creator/issues/1
template-issue: 1
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: 'issue-creator'
description: 'Periodically create GitHub issue'
inputs:
template-issue-url:
description: 'e.g. https://github.com/rerost/issue-creator/issues/1'
template-issue:
description: 'template issue number, e.g.1. https://github.com/rerost/issue-creator/issues/1'
required: true
close-last-issue:
description: 'close prev issue or not'
default: "false"
default: true
check-before-create-issue:
description: 'shell script'
default: "echo 'OK'"
token:
default: ${{ github.token }}
repository:
description: 'e.g. rerost/issue-creator'
default: ${{ github.repository }}
runs:
using: "docker"
image: 'Dockerfile'
args:
- issue-creator
- create
- ${{ inputs.template-issue-url }}
- https://github.com/${{ inputs.repository }}/issues/${{ inputs.template-issue }}
- --CloseLastIssue=${{ inputs.close-last-issue }}
- --check-before-create-issue=${{ inputs.check-before-create-issue }}
- --GithubAccessToken=${{ inputs.token }}

0 comments on commit 292d781

Please sign in to comment.