Skip to content

chore(deps): bump thiserror to 2, sqlx to 0.9 (#336) #84

chore(deps): bump thiserror to 2, sqlx to 0.9 (#336)

chore(deps): bump thiserror to 2, sqlx to 0.9 (#336) #84

Workflow file for this run

name: Mirror to Codeberg
on:
push:
branches: [main, prod]
tags: ['v*']
jobs:
mirror:
runs-on: ubuntu-latest
steps:
# Skips gracefully until the CODEBERG_TOKEN secret is configured.
- id: token
run: echo "have=${{ secrets.CODEBERG_TOKEN != '' }}" >> "$GITHUB_OUTPUT"
- if: steps.token.outputs.have == 'true'
uses: actions/checkout@v7
with:
fetch-depth: 0
# Mirror exactly the ref that triggered (checkout only fetches that one);
# never --mirror, which would force-push and DELETE unknown refs.
- if: steps.token.outputs.have == 'true'
run: git push --force "https://u8array:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/u8array/ZPLab.git" "HEAD:${{ github.ref }}"