Skip to content

Commit

Permalink
Merge pull request #1 from pllim/ts-action
Browse files Browse the repository at this point in the history
Re-implement in TypeScript
  • Loading branch information
pllim authored Dec 24, 2020
2 parents 4cff6e3 + a1e0ab6 commit 5126c18
Show file tree
Hide file tree
Showing 12 changed files with 6,600 additions and 130 deletions.
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

0 comments on commit 5126c18

Please sign in to comment.