Skip to content

Commit

Permalink
feat(ci): Reuse workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
  • Loading branch information
stv0g committed Jun 15, 2024
1 parent 678d26c commit 541b3e6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/reuse.yaml → .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@

# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Tests
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
reuse:
uses: cunicu/.github/.github/workflows/reuse.yaml@v0.2.0
14 changes: 14 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
19 changes: 19 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 }}
permissions:
contents: write

0 comments on commit 541b3e6

Please sign in to comment.