Actualizar .github/workflows/sync-to-github.yml
Some checks are pending
Sync selected files to GitHub / sync (push) Waiting to run

This commit is contained in:
2026-04-26 18:02:28 +02:00
parent 91225e185d
commit ba6d731377

View File

@@ -9,14 +9,14 @@ jobs:
sync: sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# 1 Clonar origen (Gitea) usando dominio externo # Clonar origen (Gitea) usando dominio externo
- name: Clone source from Gitea - name: Clone source from Gitea
run: | run: |
git clone https://git.natxocc.com/natxocc/sigpro.git source git clone https://git.natxocc.com/natxocc/sigpro.git source
cd source cd source
git checkout main # o la rama que necesites git checkout main # o la rama que necesites
# 2 Clonar destino (GitHub) igual que antes # Clonar destino (GitHub) igual que antes
- name: Clone destination (GitHub) - name: Clone destination (GitHub)
run: | run: |
git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/natxocc/sigpro.git dest git clone https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/natxocc/sigpro.git dest
@@ -24,7 +24,7 @@ jobs:
git config user.name "Sync Bot" git config user.name "Sync Bot"
git config user.email "bot@natxocc.com" git config user.email "bot@natxocc.com"
# 3 Copiar archivos seleccionados # Copiar archivos seleccionados
- name: Copy selected files - name: Copy selected files
run: | run: |
FILES="sigpro.js sigpro.d.ts vite/index.js dist/sigpro.esm.js dist/sigpro.esm.min.js dist/sigpro.js dist/sigpro.min.js" FILES="sigpro.js sigpro.d.ts vite/index.js dist/sigpro.esm.js dist/sigpro.esm.min.js dist/sigpro.js dist/sigpro.min.js"
@@ -38,7 +38,7 @@ jobs:
fi fi
done done
# 4 Commit y push a GitHub # Commit y push a GitHub
- name: Commit and push - name: Commit and push
run: | run: |
cd dest cd dest