Skip to content

Commit 138fb7c

Browse files
authored
Merge pull request #1 from tomtomsen/test
initial commit
2 parents fd7fbc1 + aa25643 commit 138fb7c

File tree

5 files changed

+31
-26
lines changed

5 files changed

+31
-26
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
indent_style = tab
7+
indent_size = 3
8+
insert_final_newline = true
9+
block_comment_start = /*
10+
block_comment = *
11+
block_comment_end = */
12+
13+
[Makefile]
14+
indent_style = tab
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = unset

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Container image that runs your code
2-
FROM alpine:3.10
1+
FROM mstruebing/editorconfig-checker
32

43
# Copies your code file from your action repository to the filesystem path `/` of the container
54
COPY entrypoint.sh /entrypoint.sh

README.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
# Hello world docker action
1+
# editorconfig-checker action
22

3-
This action prints "Hello World" to the log or "Hello" + the name of a person to greet. To learn how this action was built, see "[Creating a Docker container action](https://help.github.com/en/articles/creating-a-docker-container-action)" in the GitHub Help documentation.
3+
This action uses [editorconfig/editorconfig](https://github.com/editorconfig-checker/editorconfig-checker#usage) to validate files.
44

55
## Inputs
66

7-
### `who-to-greet`
8-
9-
**Required** The name of the person to greet. Default `"World"`.
7+
There are currently no inputs available.
108

119
## Outputs
1210

13-
### `time`
11+
### `output`
1412

15-
The time we greeted you.
13+
Output of editorconfig-checker
1614

1715
## Example usage
1816

1917
```yaml
20-
uses: actions/hello-world-docker-action@master
21-
with:
22-
who-to-greet: 'Mona the Octocat'
18+
uses: tomtomsen/action-editorconfig-checker@master
2319
```

action.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
name: 'Hello World'
2-
description: 'Greet someone and record the time'
3-
inputs:
4-
who-to-greet: # id of input
5-
description: 'Who to greet'
6-
required: true
7-
default: 'World'
1+
name: 'editorconfig-checker'
2+
description: 'Using editorconfig-checker/editorconfig-checker to verify your files'
83
outputs:
9-
time: # id of output
10-
description: 'The time we greeted you'
4+
output:
5+
description: 'validation results'
116
runs:
127
using: 'docker'
138
image: 'Dockerfile'
14-
args:
15-
- ${{ inputs.who-to-greet }}

entrypoint.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh -l
22

3-
echo "Hello $1"
4-
time=$(date)
5-
echo ::set-output name=time::$time
3+
output=$(ec)
4+
echo ::set-output name=output::$output

0 commit comments

Comments
 (0)