Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement in TypeScript #1

Merged
merged 2 commits into from
Dec 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ __pycache__/
.Python
build/
develop-eggs/
dist/
dist/*
!dist/index.js
downloads/
eggs/
.eggs/
Expand Down Expand Up @@ -127,3 +128,6 @@ dmypy.json

# Pyre type checker
.pyre/

# nodejs
node_modules/
10 changes: 0 additions & 10 deletions Dockerfile

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
steps:
- name: Special comment
uses: pllim/action-special_pr_comment@main
env:
SPECIAL_DAYS: 04-01,11-21
with:
SPECIAL_DAYS: 04-01,12-23
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

`SPECIAL_DAYS` must contain a comma-separate list of dates in the format of
`MM-DD`.
`MM-DD`. If it is not provided, a built-in default is used.
16 changes: 12 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: 'Special day comment'
description: 'Comment if today is a special day.'
author: 'pllim'
inputs:
SPECIAL_DAYS:
description: 'Comma separated MM-DD'
default: '04-01'
required: false
GITHUB_TOKEN:
description: 'GitHub access token'
required: true

runs:
using: 'docker'
image: 'Dockerfile'
args:
- 'none'
using: 'node12'
main: 'dist/index.js'
Loading