Skip to content

Commit

Permalink
dev: Update docs for initial release (#20)
Browse files Browse the repository at this point in the history
* dev: Update docs for initial release

* Update action.yaml

* dev: do not log context
  • Loading branch information
Jason3S authored Dec 17, 2020
1 parent 50de4e8 commit e559279
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# [WIP] cspell-action
GitHub Action: Check Spelling
# cspell-action
Uses [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) to check code.

## Pull Requests
## Installation

## Push
```yaml
- uses: streetsidesoftware/cspell-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
```
1 change: 0 additions & 1 deletion action-source/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ async function action() {
const context = gitHubApi.context;

const github = getOctokit(getGithubToken());
core.info(`context: ${JSON.stringify(context, null, 2)}`);

switch (context.eventName) {
case 'push':
Expand Down
5 changes: 1 addition & 4 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: 'cspell-action'
description: 'Spell check changed files.'
description: 'Spell Checker for Code'
author: 'Street Side Software <[email protected]>'
inputs:
github_token:
description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
required: true
outputs:
time:
description: 'Finish time.'
runs:
using: 'node12'
main: './action/main.js'
Expand Down
2 changes: 1 addition & 1 deletion action/main.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cspell-action",
"version": "1.0.0",
"version": "0.1.0",
"description": "GitHub Action: Check Spelling",
"main": "action/main.js",
"private": true,
Expand All @@ -26,6 +26,7 @@
"cspell",
"Action",
"cspell",
"spell",
"spelling",
"checker"
],
Expand Down

0 comments on commit e559279

Please sign in to comment.