-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(example-ts): add documents and action.yaml file
- Loading branch information
Showing
6 changed files
with
438 additions
and
317 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Example actions | ||
|
||
<!-- This should be developer documentation --> | ||
|
||
The example GitHub Actions starter for this repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Example action | ||
<!-- TODO: Update above title to <name> action --> | ||
|
||
<!-- TODO: Update below description --> | ||
The example action for doing nothing. | ||
|
||
## Usage | ||
|
||
<!-- TODO: Update below example configuration --> | ||
```yaml | ||
jobs: | ||
job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: kc-workspace/github-actions/example-ts@v1 | ||
with: | ||
# name: example | ||
# dryrun: true | ||
``` | ||
|
||
## Configurations | ||
|
||
The configurations can be sent to the action in 2 ways: | ||
[Environment variables][gh-actions-env] or [Input][gh-actions-input] | ||
(The environment will always has priority over `with` fields). | ||
|
||
[gh-actions-env]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsenv | ||
[gh-actions-input]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepswith | ||
|
||
### Name | ||
|
||
`name` is a printing name (default is **example**). | ||
|
||
| Input | Environment | Alternative Environment | | ||
| ----- | ----------- | ----------------------- | | ||
| name | NAME | EXAMPLE_TS\_\_NAME | | ||
|
||
### Dryrun | ||
|
||
`dryrun` will enabled dry-run mode instead of running actual command. | ||
|
||
| Input | Environment | Alternative Environment | | ||
| ------ | ----------- | ----------------------- | | ||
| dryrun | DRYRUN | EXAMPLE_TS\_\_DRYRUN | | ||
|
||
## Source code | ||
|
||
<!-- TODO: Update below action name --> | ||
> [github-actions-src#action/example-ts][source-code-url] | ||
<!-- TODO: Update below action directory --> | ||
[source-code-url]: https://github.com/kc-workspace/github-actions-src/tree/main/actions/example-ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Typescript Example | ||
description: Example actions written on Typescript | ||
author: Kamontat Chantrachirathumrong | ||
|
||
inputs: | ||
name: | ||
description: example name | ||
dryrun: | ||
description: dry-run the command instead executes | ||
required: false | ||
|
||
# outputs: | ||
# output: | ||
# description: Output description | ||
|
||
runs: | ||
using: node20 | ||
main: index.js |
Oops, something went wrong.