Add migration guide for cutuCÃO to Oracle Cloud #5
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: 🪞 Espelhamento para Codeberg | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: [ 'v*' ] | |
| # Força o uso do Node.js 24 para silenciar o warning de depreciação | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout do código | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Puxa todo o histórico, branches e tags | |
| - name: 🚀 Sincronizando com o Codeberg | |
| env: | |
| CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }} | |
| AUTH_USER: "vinicius3w" # Seu usuário (quem faz o login) | |
| TARGET_OWNER: "ASSERT_Lab" # A organização (onde o repo mora) | |
| REPO_NAME: "cutucao-bot" | |
| run: | | |
| # Configura o git local para não reclamar de credenciais | |
| git config --global user.name "GitHub Action Mirror" | |
| git config --global user.email "action@github.com" | |
| # Adiciona o Codeberg como um remote (Note a separação de AUTH_USER e TARGET_OWNER) | |
| git remote add codeberg https://$AUTH_USER:$CODEBERG_TOKEN@codeberg.org/$TARGET_OWNER/$REPO_NAME.git | |
| # Empurra todo o histórico e tags forçando a sincronia | |
| git push codeberg --all --force | |
| git push codeberg --tags --force |