Skip to content

Commit

Permalink
update: Artificial-Intelligence
Browse files Browse the repository at this point in the history
  • Loading branch information
sayande717 committed Apr 11, 2024
1 parent be46caf commit b1f9bcd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/generate-pdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:

- name: Convert & Store
run: |
export fileName="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //; s/\.md$//')"
export fileNameMD="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //')"
export fileNamePDF="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //; s/\.md$//').pdf"
pandoc "./topics/${fileNameMD}" -o "./assets/pdf/${fileNamePDF}"
export fileName="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //')"
export fileNameMD=$fileName.md
export fileNamePDF=$fileName.pdf
pandoc "./topics/$fileNameMD" -o "./assets/pdf/$fileNamePDF"
- name: Commit PDF
run: |
git add "./assets/pdf/${fileNamePDF}"
git commit -m "pdf: ${fileName}"
git add "./assets/pdf/$fileNamePDF"
git commit -m "pdf: $fileName"
git push origin main
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ git clone https://github.com/sayande717/notes.git
|Statement & Assumption|Section 1|1-30|5|09:26|
|Logical Reasoning|Test: 3|1-20|4|07:00|




- Verbal Reasoning
|Syllogism|Type 1|1-14|2|09:12|
|Syllogism|Type 2|1-20|1|06:45|
Expand Down
10 changes: 5 additions & 5 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ subjectName=${subjectList[$((subjectID))]}

# Subject file name formatting
extension="md"
targetFile="$subjectName.$extension"
targetAssetsDir="$subjectName"
targetFile="${subjectName}.${extension}"
targetAssetsDir="${subjectName}"

# Commit message formatting
commitMessage="update: $subjectName"
commitMessage="update: ${subjectName}"

# push to repository
git add README.md ./topics/$targetFile ./assets/images/$targetAssetsDir
git commit -m "$commitMessage"
git add README.md "./topics/${targetFile}" "./assets/images/${targetAssetsDir}"
git commit -m "${commitMessage}"
git push origin main


0 comments on commit b1f9bcd

Please sign in to comment.