feat(ci): Reuse GitHub actions workflows

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2024-06-15 14:02:19 +02:00
parent d0e2fba6e7
commit eb236bba6e
4 changed files with 47 additions and 22 deletions

16
.github/workflows/check.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel <post@steffenvogel.de>
# SPDX-License-Identifier: Apache-2.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Compliance Checks
on:
push:
branches:
- main
pull_request:
jobs:
reuse:
uses: cunicu/.github/.github/workflows/reuse.yaml@v0.2.0

14
.github/workflows/mirror.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel <post@steffenvogel.de>
# SPDX-License-Identifier: Apache-2.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Mirror to Codeberg
on: [push, delete]
jobs:
mirror:
uses: cunicu/.github/.github/workflows/mirror.yaml@v0.2.0
secrets:
CODEBERG_SSH_KEY: ${{ secrets.CODEBERG_SSH_KEY }}

17
.github/workflows/release-tag.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel <post@steffenvogel.de>
# SPDX-License-Identifier: Apache-2.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Release
on:
push:
branches:
- main
jobs:
semver-tag:
uses: cunicu/.github/.github/workflows/release.yaml@v0.2.0
secrets:
PAT: ${{ secrets.PAT }}

View File

@@ -1,22 +0,0 @@
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
# SPDX-License-Identifier: CC0-1.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Compliance Checks
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: REUSE
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v3