-
Notifications
You must be signed in to change notification settings - Fork 0
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
29f559e
commit b941770
Showing
5 changed files
with
60 additions
and
18 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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Directory containing the markdown files | ||
dir="./KnowledgeBase/" | ||
|
||
echo "[DEBUG] Generating output for all markdown files in $dir" | ||
|
||
# Find all markdown files in the directory and its subdirectories | ||
find $dir -name "*.md" | while read -r file; do | ||
echo "[DEBUG] Found markdown file: $file" | ||
echo "Printing contents of $file" | ||
cat "$file" | ||
done | ||
|
||
echo "[DEBUG] Done generating output for all markdown files in $dir" |
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
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 |
---|---|---|
|
@@ -24,19 +24,21 @@ jobs: | |
run: .github/scripts/updateLinks.sh | ||
- name: Convert H1 to H2 | ||
run: .github/scripts/convertH1toH2.sh | ||
- name: Copy files to GrahamWattsWeb | ||
uses: nkoppel/[email protected] | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source-files: 'KnowledgeBase/*' | ||
destination-username: 'gingergraham' | ||
destination-repository: 'GrahamWattsWeb' | ||
destination-branch: 'main' | ||
destination-directory: 'src/_knowledge/' | ||
commit-email: '[email protected]' | ||
commit-username: 'Graham Watts' | ||
commit-message: 'Copy from KnowledgeBase' | ||
- name: [DEBUG] Show file contents | ||
run: github/scripts/printFileContents.sh | ||
# - name: Copy files to GrahamWattsWeb | ||
# uses: nkoppel/[email protected] | ||
# env: | ||
# API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
# with: | ||
# source-files: 'KnowledgeBase/*' | ||
# destination-username: 'gingergraham' | ||
# destination-repository: 'GrahamWattsWeb' | ||
# destination-branch: 'main' | ||
# destination-directory: 'src/_knowledge/' | ||
# commit-email: '[email protected]' | ||
# commit-username: 'Graham Watts' | ||
# commit-message: 'Copy from KnowledgeBase' | ||
|
||
# source-files (argument) | ||
# The files/directories to copy to the destination repository. Can have multiple space-separated filenames and globbing. | ||
|