Fix formatting, whitespace, markdownlint (#9) (#40)

Co-authored-by: Frieder Bluemle <frieder.bluemle@gmail.com>
This commit is contained in:
Ross Brodbeck
2020-07-20 07:08:15 -04:00
committed by GitHub
parent b447b178e1
commit c0941600fa
12 changed files with 55 additions and 56 deletions

View File

@ -1,13 +1,12 @@
# Create a JavaScript Action
<p align="center">
<a href="https://github.com/actions/javascript-action/actions"><img alt="javscript-action status" src="https://github.com/actions/javascript-action/workflows/units-test/badge.svg"></a>
</p>
# Create a JavaScript Action
Use this template to bootstrap the creation of a JavaScript action.:rocket:
This template includes tests, linting, a validation workflow, publishing, and versioning guidance.
This template includes tests, linting, a validation workflow, publishing, and versioning guidance.
If you are new, there's also a simpler introduction. See the [Hello World JavaScript Action](https://github.com/actions/hello-world-javascript-action)
@ -17,12 +16,14 @@ Click the `Use this Template` and provide the new repo details for your action
## Code in Main
Install the dependencies
Install the dependencies
```bash
$ npm install
npm install
```
Run the tests :heavy_check_mark:
Run the tests :heavy_check_mark:
```bash
$ npm test
@ -30,7 +31,6 @@ $ npm test
✓ throws invalid number (3ms)
wait 500 ms (504ms)
test runs (95ms)
...
```
@ -51,9 +51,9 @@ const core = require('@actions/core');
...
async function run() {
try {
try {
...
}
}
catch (error) {
core.setFailed(error.message);
}
@ -89,15 +89,15 @@ Users shouldn't consume the action from master since that would be latest code a
Checkin to the v1 release branch
```bash
$ git checkout -b v1
$ git commit -a -m "v1 release"
git checkout -b v1
git commit -a -m "v1 release"
```
```bash
$ git push origin v1
git push origin v1
```
Your action is now published! :rocket:
Your action is now published! :rocket:
See the [versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)