Skip to content

Commit

Permalink
Merge pull request #28 from fsfe/reuse-v3
Browse files Browse the repository at this point in the history
Bump to reuse-tool v3
  • Loading branch information
mxmehl authored Feb 27, 2024
2 parents 4a900d3 + cd6bf02 commit a46482c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,28 @@ jobs:
with:
args: spdx

# Use latest major version of the action
test-majorversion:
# Use all major version of the action
test-v1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
with:
args: lint
test-v2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2
with:
args: lint --json
# test-v3:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: REUSE Compliance Check
# uses: fsfe/reuse-action@v3
# with:
# args: lint --json
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

FROM fsfe/reuse:2
FROM fsfe/reuse:3

# Copy reuse wrapper used as entrypoint
COPY reuse-action-wrapper.sh /bin/reuse-action-wrapper
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2
uses: fsfe/reuse-action@v3
```
If you would like to run other subcommands, you could use the following snippet which outputs a the SPDX bill of materials:
```yml
- uses: actions/checkout@v4
- name: REUSE SPDX SBOM
uses: fsfe/reuse-action@v2
uses: fsfe/reuse-action@v3
with:
args: spdx
```
Expand All @@ -59,7 +59,7 @@ In the same fashion, it is possible to add optional arguments like `--include-su
```yml
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2
uses: fsfe/reuse-action@v3
with:
args: --include-submodules lint
```
Expand Down

0 comments on commit a46482c

Please sign in to comment.