From 153f17b8a65cb5b8159c034ff51b406d92410de1 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 15 Jun 2024 11:30:48 +0200 Subject: [PATCH] Reuse workflows Signed-off-by: Steffen Vogel --- .github/workflows/mirror.yaml | 20 ++++---------------- .github/workflows/reuse.yaml | 10 ++-------- 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml index 72121c3..0748ff4 100644 --- a/.github/workflows/mirror.yaml +++ b/.github/workflows/mirror.yaml @@ -8,19 +8,7 @@ name: Mirror to Codeberg on: [push, delete] jobs: - build: - name: Mirror - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: yesolutions/mirror-action@master - with: - REMOTE: git@codeberg.org:${{ github.repository }}.git - GIT_SSH_PRIVATE_KEY: ${{ secrets.CODEBERG_SSH_KEY }} - GIT_SSH_NO_VERIFY_HOST: "true" - + mirror: + uses: cunicu/.github/.github/workflows/mirror.yaml@v0.1.0 + secrets: + CODEBERG_SSH_KEY: ${{ secrets.CODEBERG_SSH_KEY }} diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml index bca8b80..58906fc 100644 --- a/.github/workflows/reuse.yaml +++ b/.github/workflows/reuse.yaml @@ -12,11 +12,5 @@ on: pull_request: jobs: - test: - name: REUSE - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: REUSE Compliance Check - uses: fsfe/reuse-action@v3 \ No newline at end of file + reuse: + uses: cunicu/.github/.github/workflows/reuse.yaml@v0.1.0