Skip to content

Commit

Permalink
Bumped the version and added release notes
Browse files Browse the repository at this point in the history
Updated the README
  • Loading branch information
Azadeh Bagheri authored and Azadeh Bagheri committed May 15, 2020
1 parent feacd11 commit 93cbb1a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.app-version.outputs.VERSION }}
commit: master
name: Shell Linter v0.3.0
bodyFile: ./docs/release_notes/v0.3.0.md
name: Shell Linter v0.4.0
bodyFile: ./docs/release_notes/v0.4.0.md

- name: Update latest tag
run: ./src/tagging.sh ${{ secrets.GITHUB_TOKEN }}
Expand Down
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A GitHub Action that performs static analysis for shell scripts using [ShellChec

<br>

## Usage
# Usage

Shell Linter can perform static analysis in various ways. You can use it to lint all the shell scripts in your project or lint a a specific file or folder using the `path` parameter. Specific use cases are shown below:

Expand All @@ -21,55 +21,61 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v1
- name: Lint check
- name: Run Shellcheck
uses: azohra/shell-linter@v0.3.0
```
Run static analysis for a single shell script.
```yml
- name: Lint check
- name: Run Shellcheck
uses: azohra/shell-linter@v0.3.0
with:
path: "setup.sh"
```
Run static analysis for multiple shell scripts **with or without** extension.
```yml
- name: Lint check
- name: Run Shellcheck
uses: azohra/shell-linter@v0.3.0
with:
path: "setup,deploy.sh"
```
Run static analysis for all the shell scripts in a folder.
```yml
- name: Lint check
- name: Run Shellcheck
uses: azohra/shell-linter@v0.3.0
with:
path: "src"
```
Run static analysis using a **wildcard** path.
```yml
- name: Lint check
- name: Run Shellcheck
uses: azohra/shell-linter@v0.3.0
with:
path: "src/*.sh"
```
Run static analysis for all the shell scripts and only report issue with error severity.
```yml
- name: Lint check
- name: Run Shellcheck
uses: azohra/shell-linter@v0.3.0
with:
path: "src/*.sh"
severity: "error"
```
Run analysis using the **latest** stable version of Shell Linter
```yml
- name: Run Shellcheck
uses: azohra/shell-linter@latest
with:
path: "src"
```
<br>
## Input
# Input
### `path`

Expand All @@ -79,7 +85,5 @@ Optional. Execute lint check on a specific file or folder. Default: `.`

Optional. Specify minimum severity of errors to consider [style, info, warning, error]. Default: `style`

<br>

## License
# License
This software is available as open source under the terms of the MIT License.
4 changes: 4 additions & 0 deletions docs/release_notes/v0.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Added support for ShellCheck severity mode
- The default behavior is set to `style` which considers errors with all severity levels
- Improved tagging
- The latest stable version can be fetched by using `@latest`
2 changes: 1 addition & 1 deletion docs/version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash

VERSION="v0.3.0"
VERSION="v0.4.0"
echo $VERSION

0 comments on commit 93cbb1a

Please # to comment.