diff --git a/.github/workflows/setup.yaml b/.github/workflows/setup.yaml new file mode 100644 index 000000000..36c2359a2 --- /dev/null +++ b/.github/workflows/setup.yaml @@ -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 \ No newline at end of file diff --git a/content/trilhas/01-finquant/2025-s1/cluster-portfolio.md b/content/01-finquant/2025-s1/cluster-portfolio.md similarity index 100% rename from content/trilhas/01-finquant/2025-s1/cluster-portfolio.md rename to content/01-finquant/2025-s1/cluster-portfolio.md diff --git a/content/trilhas/01-finquant/2025-s1/trading-ia.md b/content/01-finquant/2025-s1/trading-ia.md similarity index 100% rename from content/trilhas/01-finquant/2025-s1/trading-ia.md rename to content/01-finquant/2025-s1/trading-ia.md diff --git a/content/trilhas/01-finquant/index.md b/content/01-finquant/index.md similarity index 100% rename from content/trilhas/01-finquant/index.md rename to content/01-finquant/index.md diff --git a/content/trilhas/02-ia/2025-s1/desigualdade-ia.md b/content/02-ia/2025-s1/desigualdade-ia.md similarity index 100% rename from content/trilhas/02-ia/2025-s1/desigualdade-ia.md rename to content/02-ia/2025-s1/desigualdade-ia.md diff --git a/content/trilhas/02-ia/index.md b/content/02-ia/index.md similarity index 100% rename from content/trilhas/02-ia/index.md rename to content/02-ia/index.md diff --git a/content/trilhas/03-ciencia-de-dados/index.md b/content/03-ciencia-de-dados/index.md similarity index 100% rename from content/trilhas/03-ciencia-de-dados/index.md rename to content/03-ciencia-de-dados/index.md diff --git a/content/trilhas/04-extras/2025-s2/Lorem-Ipsum-Document.md b/content/04-extras/2025-s2/Lorem-Ipsum-Document.md similarity index 100% rename from content/trilhas/04-extras/2025-s2/Lorem-Ipsum-Document.md rename to content/04-extras/2025-s2/Lorem-Ipsum-Document.md diff --git a/content/trilhas/04-extras/2025-s2/guia-hub.md b/content/04-extras/2025-s2/guia-hub.md similarity index 100% rename from content/trilhas/04-extras/2025-s2/guia-hub.md rename to content/04-extras/2025-s2/guia-hub.md diff --git a/content/trilhas/04-extras/index.md b/content/04-extras/index.md similarity index 100% rename from content/trilhas/04-extras/index.md rename to content/04-extras/index.md diff --git a/content/Test/Pasted image 20251114152300.png b/content/Test/Pasted image 20251114152300.png deleted file mode 100644 index 151ae1b13..000000000 Binary files a/content/Test/Pasted image 20251114152300.png and /dev/null differ diff --git a/content/Test/Welcome.md b/content/Test/Welcome.md deleted file mode 100644 index 516a04335..000000000 --- a/content/Test/Welcome.md +++ /dev/null @@ -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]] \ No newline at end of file