Add env options and db-import #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror to Codeberg | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '30 0 * * 0' | |
| push: | |
| branches: [main] | |
| jobs: | |
| codeberg: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "actions@github.com" | |
| - name: Mirror repository | |
| run: | | |
| git remote add codeberg https://gl0bal01:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/gl0bal01/wp-quick-dev.git || true | |
| git push codeberg --all --force | |
| git push codeberg --tags --force |