Skip to content

Commit

Permalink
add dockerignore and fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
n01e0 committed Dec 17, 2023
1 parent a8016b9 commit 2613b7e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config.yaml*
action.yml
LICENSE
target
Makefile.toml
4 changes: 3 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- uses: actions/checkout@v2
- uses: n01e0/ppb@main
with:
args: --organization n01e0 --project ppb --token ${{ secrets.GITHUB_TOKEN }}
organization: n01e0
project: ppb
token: ${{ secrets.GITHUB_TOKEN }}

check:
runs-on: ubuntu-latest
Expand Down
34 changes: 22 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,31 @@ name: 'Postpone Bot'
author: 'n01e0'
description: 'Create an issue for implementation that has been postponed with comments such as TODO or FIXME.'
inputs:
args:
description: >-
argument for postpone-bot.
-c, --config <CONFIG> config file
--org <ORGANIZATION> organization
--project <PROJECT> project
--token <TOKEN> GitHub token
--annotation-labels <ANNOTATION_LABELS> annotation labels default [\"TODO\", \"FIXME\"]
-h, --help Print help
-V, --version Print version
organization:
description: 'organization'
required: true
repository:
description: 'repository'
required: true
token:
description: 'GitHub token'
required: true
default: '-c .postpone-bot.yml'
annotation_label:
description: 'annotation comment label'
required: false
default: 'TODO FIXME'

runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.args }}
[
'--organization',
'${{ inputs.organization }}',
'--repository',
'${{ inputs.repository }}',
'--token',
'${{ inputs.token }}',
'--annotation_label',
'${{ inputs.annotation_label }}',
]

0 comments on commit 2613b7e

Please sign in to comment.