Skip to content

Commit a1e3eef

Browse files
authored
Update README.md
1 parent 483ace9 commit a1e3eef

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,45 @@
11
# cwl-upload-conformance-badges
2-
Action for uploading CWL conformance badges
2+
It is a custom Github Action for uploading CWL conformance badges to specified repository.
3+
4+
## Example
5+
6+
```yaml
7+
jobs:
8+
conformance:
9+
runs-on: ubuntu-latest
10+
steps:
11+
...
12+
13+
- name: Run conformance tests
14+
id: run-conformance
15+
uses: tom-tan/[email protected]
16+
with:
17+
cwlVersion: v1.0
18+
runner: your-runner
19+
timeout: 30
20+
skip-python-install: true
21+
22+
- name: Save badges
23+
if: success() && github.event_name == 'push' # upload badges when this action is invoked by `push` event
24+
uses: tom-tan/[email protected]
25+
with:
26+
cwlVersion: v1.0
27+
runner-name: your-runner
28+
badgedir: ${{ steps.run-conformance.outputs.badgedir }}
29+
repository: ${{ github.repository_owner }}/conformance
30+
upload-default-branch: true
31+
token: ${{ secrets.CONFORMANCE_TOKEN }}
32+
```
33+
34+
## Input parameters
35+
36+
| Parameters | Required | Default | Description |
37+
|---|---|---|---|
38+
| `cwlVersion` | true | - | target CWL version |
39+
| `runne-namer` | true | - | name of CWL runner |
40+
| `badgedir` | true | - | full path to the directory that stores conformance badges |
41+
| `repository` | true | - | repository (in the form of `owner/repo`) to store badges |
42+
| `upload-default-branch` | false | false | whether uploading the result of HEAD in the default branch |
43+
| `token` | true | - | token to commit the repository specified in the `repository` field |
44+
45+
This action has no output parameters.

0 commit comments

Comments
 (0)