Skip to content

Commit adf2887

Browse files
committed
Add basic info to README
1 parent 2a40b1b commit adf2887

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,61 @@
1-
# github-actions-typing
1+
# Work in progress! Not ready for usage.
2+
3+
---
4+
5+
# GitHub Actions typing
6+
27
Bring type-safety to your GitHub actions' API!
8+
9+
This is a GitHub action that validates your action's manifest (action.y(a)ml) and ensures the inputs and outputs have
10+
types set according to a certain specification.
11+
12+
# Example
13+
14+
Let's say your action has such manifest:
15+
16+
```yaml
17+
name: My cool action
18+
description: Just to showcase GitHub Actions typing
19+
typingSpec: krzema12/[email protected]
20+
inputs:
21+
verbose:
22+
description: 'Set to true to display debug information helpful when troubleshooting issues with this action.'
23+
required: false
24+
default: 'false'
25+
type: boolean
26+
log-level:
27+
description: 'Specify the level of details for logging.'
28+
required: true
29+
permissions:
30+
description: 'Who should have access.'
31+
type: inttteger
32+
runs:
33+
using: 'node16'
34+
image: 'dist/main.js'
35+
```
36+
37+
This action, once used within a workflow, will fail the workflow run and produce such output:
38+
39+
![Example output](docs/ExampleOutput.png)
40+
41+
# Usage
42+
43+
Create a workflow in your actions' repository that will simply call this action:
44+
45+
```yaml
46+
name: Validate action typings
47+
48+
on:
49+
push: [main]
50+
pull_request:
51+
workflow_dispatch:
52+
53+
jobs:
54+
validate-typings:
55+
runs-on: "ubuntu-latest"
56+
steps:
57+
- uses: actions/checkout@v3
58+
- uses: krzema12/github-actions-typing@v0
59+
with:
60+
verbose: true
61+
```

docs/ExampleOutput.png

21.1 KB
Loading

0 commit comments

Comments
 (0)