chore: abrindo a pasta de trilhas

This commit is contained in:
Igor0Pires 2025-11-14 18:42:14 -03:00
parent 5a60c5873b
commit 3cf8530fb8
12 changed files with 26 additions and 6 deletions

26
.github/workflows/setup.yaml vendored Normal file
View 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

View File

@ -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]]