diff --git a/.gitea/workflows/sync-to-github.yml b/.gitea/workflows/sync-to-github.yml index be2100b..55b3440 100644 --- a/.gitea/workflows/sync-to-github.yml +++ b/.gitea/workflows/sync-to-github.yml @@ -18,6 +18,14 @@ jobs: run: | git remote add github https://josedario87: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@github.com/josedario87/planilla.git + - name: Forzar limpieza y retry + run: | + git remote remove github + git remote add github https://josedario87:${GITHUB_TOKEN}@github.com/josedario87/planilla.git + git fetch github + git push github +HEAD:main --force + + - name: Forzar subida a GitHub (sobrescribe lo que haya) run: | git fetch github