Skip to content

Commit

Permalink
Map same arguements (#17)
Browse files Browse the repository at this point in the history
* Move to match input variables to the same

* Fix missed check

* Update documentation
  • Loading branch information
Cyb3r-Jak3 authored May 8, 2021
1 parent c8012a8 commit 759ac35
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git**
tests/**
**.md
output_check.sh
8 changes: 4 additions & 4 deletions .github/workflows/action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
config: tests/example_config.yaml
action_debug: true

- name: Check Ignore
id: ignore
- name: Check Blacklist
id: blacklist
uses: ./
with:
root: tests/
ignore: invalid
blacklist: invalid
action_debug: true

- name: Check Failure
Expand Down Expand Up @@ -74,5 +74,5 @@ jobs:
VALID_OUT: ${{ steps.valid.outputs.result }}
INVALID_OUT: ${{ steps.invalid.outputs.result }}
CONFIG_OUT: ${{ steps.config.outputs.result }}
IGNORE_OUT: ${{ steps.ignore.outputs.result }}
BLACKLIST_OUT: ${{ steps.blacklist.outputs.result }}
EMPTY_OUT: ${{ steps.empty.outputs.result }}
2 changes: 2 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Integration Test

on:
push:
branches:
- "master"
schedule:
- cron: '0 0 * * 0' # Weekly on Sundays at 00:00

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!-- markdownlint-disable MD024 -->
# Changelog

## [v0.6] - 2021-05-7

- Map action input names to html5validator inputs

## [v0.5] - 2021-03-27

- Adds ignore option to ignore files and directories
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Log level to use. Supported values: `DEBUG, INFO, WARNING`. Default: `Warning`.

If to check css. Supported values: `true, false`. Default: `false`.

### `Ignore`
### `Blacklist`

Names of files or directories to ignore.
**This is not full paths**
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inputs:
css:
description: "Checks css as well"
required: false
ignore:
blacklist:
description: "Files or directories to ignore in checking"
required: false
action_debug:
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function main() {
BuildARGS+="--format ${INPUT_FORMAT}"
fi

if uses "${INPUT_IGNORE}"; then
BuildARGS+=" --blacklist ${INPUT_IGNORE}"
if uses "${INPUT_BLACKLIST}"; then
BuildARGS+=" --blacklist ${INPUT_BLACKLIST}"
fi

if usesBoolean "${INPUT_CSS}"; then
Expand Down
2 changes: 1 addition & 1 deletion output_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "$CONFIG_OUT" -ne 0 ]]; then
echo "Config step failed"
exit 1
fi
if [[ "$IGNORE_OUT" -ne 0 ]]; then
if [[ "$BLACKLIST_OUT" -ne 0 ]]; then
echo "Ignore step failed"
exit 1
fi
Expand Down

0 comments on commit 759ac35

Please sign in to comment.