From 371047ae14a15916d2f13571fb979856b4bbdce2 Mon Sep 17 00:00:00 2001 From: Davy <95214375+thedavidweng@users.noreply.github.com> Date: Fri, 19 Jun 2026 20:35:55 -0700 Subject: [PATCH 1/2] ci: add Codeberg mirror workflow --- .github/workflows/mirror.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..335c475 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,26 @@ +name: Mirror to Codeberg + +on: + push: + branches: ["**"] + tags: ["**"] + workflow_dispatch: + +jobs: + mirror: + name: Mirror + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mirror to Codeberg + uses: cssnr/mirror-repository-action@v1 + with: + host: https://codeberg.org + username: thedavidweng + password: ${{ secrets.CODEBERG_TOKEN }} From 5bb3bc38344036bff3de017affd2aebda5a1dc5b Mon Sep 17 00:00:00 2001 From: Davy <95214375+thedavidweng@users.noreply.github.com> Date: Sat, 20 Jun 2026 01:03:04 -0700 Subject: [PATCH 2/2] fix: pin action SHA, remove test.txt, add permissions --- .github/workflows/mirror.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 335c475..ec30176 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -6,6 +6,9 @@ on: tags: ["**"] workflow_dispatch: +permissions: + contents: read + jobs: mirror: name: Mirror @@ -19,7 +22,7 @@ jobs: fetch-depth: 0 - name: Mirror to Codeberg - uses: cssnr/mirror-repository-action@v1 + uses: cssnr/mirror-repository-action@4e3e1a67ee37ac30073df96fe9f53ef7ec4a4f80 # v1 with: host: https://codeberg.org username: thedavidweng