fix: add force_push and fetch-depth: 0#97
Conversation
| host: https://codeberg.org | ||
| username: thedavidweng | ||
| password: ${{ secrets.CODEBERG_TOKEN }} | ||
| force_push: true |
There was a problem hiding this comment.
force_push is not a declared input of this action
The GitHub Marketplace listing for cssnr/mirror-repository-action v1.2.0 declares inputs: url, host, owner, repo, create, username, password, summary, and private. force_push is absent from all of them. GitHub Actions will emit a warning about the unexpected input and the parameter will be silently ignored — the push will happen without --force, meaning the original failure (Codeberg history diverged from GitHub) will persist. Verify via the action's source action.yml that force_push is a recognized input at the pinned SHA, or replace this step with a raw git push --force script step.
| fetch-depth: 0 | ||
|
|
||
| - name: Mirror to Codeberg | ||
| uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1 |
There was a problem hiding this comment.
The inline comment says
# v1 but the SHA 2af5bf347684245f52b5f56502956a57f9b8813e corresponds to v1.2.0 (confirmed from the action author's own mirror workflow). Keeping the comment accurate avoids confusion when auditing pinned versions later.
| uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1 | |
| uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1.2.0 |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Fix mirror workflow: force push to overwrite Codeberg, full clone.