-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb8786c
commit 1e0b9ca
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,18 +14,27 @@ jobs: | |
uses: actions/checkout@v4 # Actualizamos a la última versión | ||
|
||
- name: Checkout Destination Repository | ||
uses: actions/checkout@v4 # Actualizamos a la última versión | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: schmittnieto/schmittnieto.github.io | ||
path: blog_repo | ||
token: ${{ secrets.GH_PAT }} | ||
# Clonamos el repositorio del blog en un directorio separado | ||
path: blog_destination | ||
|
||
- name: Copy Files | ||
run: | | ||
rsync -av --exclude='.git' ./ blog_repo/assets/repo/AzSHCI --exclude=blog_repo | ||
# Definir variables para las rutas | ||
SOURCE_DIR="${{ github.workspace }}" | ||
DEST_DIR="${{ github.workspace }}/blog_destination/assets/repo/AzSHCI" | ||
# Crear el directorio de destino si no existe | ||
mkdir -p "$DEST_DIR" | ||
# Ejecutar rsync para copiar archivos del repositorio fuente al destino | ||
rsync -av --exclude='.git' --exclude='blog_destination' "$SOURCE_DIR/" "$DEST_DIR/" | ||
- name: Commit and Push Changes | ||
working-directory: blog_repo | ||
working-directory: blog_destination | ||
run: | | ||
git config user.name "schmittnieto" | ||
git config user.email "[email protected]" | ||
|