-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
12 changed files
with
122 additions
and
104 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Check for new presentations | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'presentations/**' | ||
|
||
jobs: | ||
check-new-folder: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y jq | ||
- name: Get the list of changed folders | ||
id: diff | ||
run: | | ||
# Get only the added folders in presentations directory | ||
diff_folders=$(git diff --name-status origin/main | grep '^A' | grep 'presentations/' | awk '{print $2}' | cut -d'/' -f2 | sort -u) | ||
echo "Folders detected: $diff_folders" | ||
echo "::set-output name=folders::$diff_folders" | ||
- name: Check new folders against table | ||
run: | | ||
# Path to your markdown table | ||
MD_FILE="scripts/table.md" | ||
# Get the date of the top row in the table | ||
top_row_date=$(grep -oP '^\|[0-9]{4}-[0-9]{2}-[0-9]{2}' $MD_FILE | head -n 1 | tr -d '|') | ||
# Loop through the folders detected | ||
for folder in ${{ steps.diff.outputs.folders }}; do | ||
folder_date=$(echo $folder | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}') | ||
echo "Comparing folder date: $folder_date with top row date: $top_row_date" | ||
if [[ "$folder_date" > "$top_row_date" ]]; then | ||
echo "New folder $folder is newer than the latest entry in the table ($top_row_date)." | ||
exit 1 | ||
else | ||
echo "Table is up to date." | ||
fi | ||
done | ||
- name: Success message | ||
if: success() | ||
run: echo "Table is up to date." | ||
|
||
- name: Fail message | ||
if: failure() | ||
run: echo "Please run the generation command to update the table." |
This file was deleted.
Oops, something went wrong.
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
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
13 changes: 13 additions & 0 deletions
13
presentations/2023-09-26--chess-the-gnolang-way--morgan/metadata.yml
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,13 @@ | ||
# Date of the workshop | ||
date: "2023-09-26" | ||
# Title of the workshop | ||
title: "Chess The Gnolang Way" | ||
# GitHub usernames of the speakers | ||
speakers: | ||
- "thehowl" | ||
# Location of the workshop | ||
location: "San Diego, USA" | ||
# Workshop slides link | ||
slides: "" | ||
# Workshop recording | ||
recording: "" |
13 changes: 13 additions & 0 deletions
13
presentations/2023-10-09--generating-audio--schollz/metadata.yml
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,13 @@ | ||
# Date of the workshop | ||
date: "2023-10-09" | ||
# Title of the workshop | ||
title: "Generating Audio" | ||
# GitHub usernames of the speakers | ||
speakers: | ||
- "schollz" | ||
# Location of the workshop | ||
location: "Online" | ||
# Workshop slides link | ||
slides: "" | ||
# Workshop recording | ||
recording: "" |
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,11 @@ | ||
#!/bin/bash | ||
|
||
# Define the file to be processed | ||
FILE="README.md" | ||
|
||
# if found line, remove table of size 17 rows | ||
|
||
# Use sed to remove the code block backticks | ||
sed -i '' '/^```md$/d; /^```$/d' "$FILE" | ||
|
||
echo "Removed code block formatting from $FILE." |
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,11 @@ | ||
#!/bin/bash | ||
|
||
# Define the file to be processed | ||
FILE="README.md" | ||
|
||
# if found line, remove table of size 17 rows | ||
|
||
# Use sed to remove the code block backticks | ||
sed -i '' '/^```md$/d; /^```$/d' "$FILE" | ||
|
||
echo "Removed code block formatting from $FILE." |
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