Actualizar .github/workflows/sync-to-github.yml
Some checks are pending
Sync selected files to GitHub / sync (push) Waiting to run
Some checks are pending
Sync selected files to GitHub / sync (push) Waiting to run
This commit is contained in:
8
.github/workflows/sync-to-github.yml
vendored
8
.github/workflows/sync-to-github.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user