mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
chore: abrindo a pasta de trilhas
This commit is contained in:
parent
5a60c5873b
commit
3cf8530fb8
26
.github/workflows/setup.yaml
vendored
Normal file
26
.github/workflows/setup.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Setup Directory Structure
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
set-dir:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: New Folder Detection
|
||||||
|
run: |
|
||||||
|
git fetch origin ${{ github.event.before }}
|
||||||
|
NEW_FOLDERS=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^content/' | cut -d'/' -f3 | sort -u)
|
||||||
|
ls -R content/
|
||||||
|
echo "New folders detected: $NEW_FOLDERS"
|
||||||
|
for folder in $NEW_FOLDERS; do
|
||||||
|
if [ -d "content/$folder"]; then #verifica se é um diretório
|
||||||
|
find content/$folder -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.gif" \) -exec mv {} imagens/ \;
|
||||||
|
|
||||||
|
ls -la imagens/$folder || echo "No images moved for $folder"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Commit and Push changes
|
||||||
|
run: |
|
||||||
|
echo "Estrutura criada:"
|
||||||
|
ls -R content/imagens
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB |
@ -1,6 +0,0 @@
|
|||||||
This is your new *vault*.
|
|
||||||
|
|
||||||
Make a note of something, [[create a link]], or try [the Importer](https://help.obsidian.md/Plugins/Importer)!
|
|
||||||
|
|
||||||
When you're ready, delete this note and make the vault your own.
|
|
||||||
![[Pasted image 20251114152300.png]]
|
|
||||||
Loading…
Reference in New Issue
Block a user