diff mbox series

[3/6] github: add GitHub action to check REUSE compliance

Message ID 20250114193628.16290-4-oss@braunwarth.dev
State Accepted
Headers show
Series Add GitHub actions | expand

Commit Message

Daniel Braunwarth Jan. 14, 2025, 7:36 p.m. UTC
This GitHub action is run on every push and checks the REUSE compliance.

Signed-off-by: Daniel Braunwarth <oss@braunwarth.dev>
---
 .github/workflows/reuse.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 .github/workflows/reuse.yml

Comments

Mark Jonas Jan. 19, 2025, 4:21 p.m. UTC | #1
Hi Daniel,

On Tue, Jan 14, 2025 at 8:37 PM Daniel Braunwarth <oss@braunwarth.dev> wrote:
>
> This GitHub action is run on every push and checks the REUSE compliance.
>
> Signed-off-by: Daniel Braunwarth <oss@braunwarth.dev>
> ---
>  .github/workflows/reuse.yml | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 .github/workflows/reuse.yml
>
> diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml
> new file mode 100644
> index 0000000..a7f0fd6
> --- /dev/null
> +++ b/.github/workflows/reuse.yml
> @@ -0,0 +1,19 @@
> +# SPDX-FileCopyrightText: 2025 Daniel Braunwarth <oss@braunwarth.dev>
> +#
> +# SPDX-License-Identifier: MIT
> +name: REUSE compliance
> +
> +on:
> +  push
> +
> +jobs:
> +  reuse:
> +    name: REUSE compliance
> +    runs-on: ubuntu-24.04
> +    steps:
> +    - uses: actions/checkout@v4
> +    - name: Install pipx
> +      run: |
> +        sudo apt-get -qq update && sudo apt-get install --yes --no-install-recommends pipx
> +    - name: Check REUSE compliance
> +      run: pipx run reuse lint

Could the official, FSFE maintained REUSE Compliance Check action be
used instead?

https://github.com/fsfe/reuse-action

> --
> 2.48.0
>
> --
> You received this message because you are subscribed to the Google Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to swupdate+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/swupdate/20250114193628.16290-4-oss%40braunwarth.dev.
Daniel Braunwarth Jan. 19, 2025, 4:28 p.m. UTC | #2
Hi Mark

On 19.01.25 17:21, Mark Jonas wrote:
> Hi Daniel,
> 
> On Tue, Jan 14, 2025 at 8:37 PM Daniel Braunwarth <oss@braunwarth.dev> wrote:
>>
>> This GitHub action is run on every push and checks the REUSE compliance.
>>
>> Signed-off-by: Daniel Braunwarth <oss@braunwarth.dev>
>> ---
>>   .github/workflows/reuse.yml | 19 +++++++++++++++++++
>>   1 file changed, 19 insertions(+)
>>   create mode 100644 .github/workflows/reuse.yml
>>
>> diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml
>> new file mode 100644
>> index 0000000..a7f0fd6
>> --- /dev/null
>> +++ b/.github/workflows/reuse.yml
>> @@ -0,0 +1,19 @@
>> +# SPDX-FileCopyrightText: 2025 Daniel Braunwarth <oss@braunwarth.dev>
>> +#
>> +# SPDX-License-Identifier: MIT
>> +name: REUSE compliance
>> +
>> +on:
>> +  push
>> +
>> +jobs:
>> +  reuse:
>> +    name: REUSE compliance
>> +    runs-on: ubuntu-24.04
>> +    steps:
>> +    - uses: actions/checkout@v4
>> +    - name: Install pipx
>> +      run: |
>> +        sudo apt-get -qq update && sudo apt-get install --yes --no-install-recommends pipx
>> +    - name: Check REUSE compliance
>> +      run: pipx run reuse lint
> 
> Could the official, FSFE maintained REUSE Compliance Check action be
> used instead?
> 
> https://github.com/fsfe/reuse-action
> 

It doesn't matter from my point of view.
The way I added the check is also from FSFE.

https://github.com/fsfe/reuse-tool?tab=readme-ov-file#install-and-run-via-pipx-recommended


Regards
Daniel
diff mbox series

Patch

diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml
new file mode 100644
index 0000000..a7f0fd6
--- /dev/null
+++ b/.github/workflows/reuse.yml
@@ -0,0 +1,19 @@ 
+# SPDX-FileCopyrightText: 2025 Daniel Braunwarth <oss@braunwarth.dev>
+#
+# SPDX-License-Identifier: MIT
+name: REUSE compliance
+
+on:
+  push
+
+jobs:
+  reuse:
+    name: REUSE compliance
+    runs-on: ubuntu-24.04
+    steps:
+    - uses: actions/checkout@v4
+    - name: Install pipx
+      run: |
+        sudo apt-get -qq update && sudo apt-get install --yes --no-install-recommends pipx
+    - name: Check REUSE compliance
+      run: pipx run reuse lint