Skip to content

Commit

Permalink
corrects check for COPYING.LESSER
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-beta-soup committed Jan 15, 2024
1 parent 3e1f423 commit 65a9c4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MWLR Standards Action Changelog

## 2020-04-27 Version 0.2.1

- Corrects check for COPYING.LESSER (rather than COPYING.lesser) for GNU LGPL

## 2020-04-27 Version 0.2.0

- Added support for GNU LGPL licenses in recommended format (COPYING and COPYING.lesser)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Each time changes are pushed to a repository this GitHub action checks that the
For a repository to meet the Manaaki Whenua standards the repository must contain:

* A README.md file that is non-empty.
* A LICENSE file that is non-empty. The LICENSE file can be named 'LICENSE', 'LICENSE.txt', or 'LICENSE.md'. Alternatively, in the case of LGPL, both 'COPYING' _and_ 'COPYING.lesser'.
* A LICENSE file that is non-empty. The LICENSE file can be named 'LICENSE', 'LICENSE.txt', or 'LICENSE.md'. Alternatively, in the case of LGPL, both 'COPYING' _and_ 'COPYING.LESSER'.

## Inputs

Expand All @@ -25,7 +25,7 @@ Note, this action requires the checkout action.

```yaml
uses : 'actions/checkout@v2'
uses : actions/manaakiwhenua-standards@v0.2.0
uses : actions/manaakiwhenua-standards@v0.2.1
```
## Installation Instructions
Expand All @@ -48,7 +48,7 @@ jobs:
- name : 'Checkout'
uses : 'actions/checkout@v3'
- name : 'manaakiwhenua-standards'
uses : manaakiwhenua/manaakiwhenua-standards@v0.2.0
uses : manaakiwhenua/manaakiwhenua-standards@v0.2.1
```

Add the following code to your README.md file. Please change the `<NAME OF YOUR REPOSITORY>` in the following line of code to your repository name.
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
if [ -s LICENSE ] || [ -s LICENSE.txt ] || [ -s LICENSE.md ] ; then
passed_messages+=("LICENSE file exists and is non-empty")
license_check=true
elif [[ -s COPYING ]] && [[ -s COPYING.lesser ]] ; then
elif [ -s COPYING ] && [ -s COPYING.lesser ] ; then
passed_messages+=("COPYING and COPYING.lesser files exist and are non-empty (GNU LGPL)")
license_check=true
else
Expand Down

0 comments on commit 65a9c4f

Please sign in to comment.