mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-05 00:42:56 +08:00
feat(ci): Reuse GitHub actions workflows
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
16
.github/workflows/check.yaml
vendored
Normal file
16
.github/workflows/check.yaml
vendored
Normal 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
14
.github/workflows/mirror.yaml
vendored
Normal 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
17
.github/workflows/release-tag.yaml
vendored
Normal 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 }}
|
22
.github/workflows/reuse.yaml
vendored
22
.github/workflows/reuse.yaml
vendored
@@ -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
|
|
Reference in New Issue
Block a user