diff --git a/.github/workflows/submissions.yml b/.github/workflows/submissions.yml
new file mode 100644
index 0000000..a97ceca
--- /dev/null
+++ b/.github/workflows/submissions.yml
@@ -0,0 +1,39 @@
+name: Process and Update Submissions
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ process:
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: List directory contents
+ run: |
+ ls -R
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+
+ - name: Run submission processing script
+ run: |
+ python docs/submissions.py
+
+ - name: Commit changes
+ run: |
+ git add docs/submissions.md
+ git commit -m "Update submissions.md with processed links" || echo "No changes to commit"
+ git push
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
diff --git a/README.md b/README.md
index e2790af..046873a 100644
--- a/README.md
+++ b/README.md
@@ -72,6 +72,13 @@ Thank you to everyone who decides to participate. Community challenges like this
Amudha Balamurugan
+
+
+
+
+ Sushant Bagul
+
+ |
@@ -93,6 +100,8 @@ Thank you to everyone who decides to participate. Community challenges like this
Meriem Terki
|
+
+
@@ -100,8 +109,6 @@ Thank you to everyone who decides to participate. Community challenges like this
JQCVSC
|
-
-
@@ -137,6 +144,8 @@ Thank you to everyone who decides to participate. Community challenges like this
Zablon
|
+
+
@@ -144,8 +153,6 @@ Thank you to everyone who decides to participate. Community challenges like this
Tomiwa
|
-
-
@@ -181,21 +188,14 @@ Thank you to everyone who decides to participate. Community challenges like this
Jaivir Baweja
|
+
+
Vikram
- |
-
-
-
-
-
-
- Sushant Bagul
-
|
diff --git a/docs/submissions.md b/docs/submissions.md
index 5f703d8..012504a 100644
--- a/docs/submissions.md
+++ b/docs/submissions.md
@@ -31,7 +31,7 @@ This is the place to add your own Cloud Resume API project!
| Name | Resume API URL | GitHub Repo |
|---------------|--------------------------------------------------------------------------------------------------------------------------| ----------- |
| CityHallin | https://api.cityhallin.com/v1/resume?name=cityhallin | https://github.com/CityHallin/cloud_resume_api_challenge |
-| Sushant Bagul | https://sushantresumeapi.azurewebsites.net/resumeapi?id=1 | https://github.com/Sushant1209/Azure-Resume-API-Challenge |
+| Sushant Bagul | https://sushantbagul.azurewebsites.net/resumeapi?id=1 | https://github.com/Sushant1209/Azure-Resume-API-Challenge |
| Charles Nwoye | [https://jkcloudresumeapi.azurewebsites.net/api/resume?id=1](https://jkcloudresumeapi.azurewebsites.net/api/resume?id=1) | [https://github.com/Jekwulum/cloud-resume-api.git](https://github.com/Jekwulum/cloud-resume-api.git) |
| Hamit Sehjal | https://resume26hamitfunc.azurewebsites.net/hamitsehjal | https://github.com/hamitsehjal/Serverless-Cloud-Resume |
diff --git a/docs/submissions.py b/docs/submissions.py
new file mode 100644
index 0000000..f267285
--- /dev/null
+++ b/docs/submissions.py
@@ -0,0 +1,54 @@
+# The script code, adjusted to write directly to 'submissions.md'
+
+import re
+
+def convert_table_links():
+ input_file = 'docs/submissions.md'
+ output_file = 'docs/submissions.md'
+
+ with open(input_file, 'r') as f:
+ content = f.read()
+
+ # Regular expressions to match table rows
+ separator_pattern = re.compile(r'^\|[-| ]+\|[-| ]+\|[-| ]+\|$')
+ row_pattern = re.compile(r'^\|([^|\n]+?)\|([^|\n]+?)\|([^|\n]+?)\|$')
+
+ # Flag to start processing inside a table
+ in_table = False
+ output_lines = []
+
+ def debug_log(line, status):
+ print(f"Processing line: {line} | Status: {status}")
+
+ # Process content
+ for line in content.splitlines():
+ if separator_pattern.match(line):
+ in_table = True
+ debug_log(line, "Table separator detected")
+ elif row_pattern.match(line):
+ if in_table:
+ match = row_pattern.match(line)
+ if match:
+ name, url1, url2 = [s.strip() for s in match.groups()]
+ url1 = f'[{url1}]({url1})' if url1 and not url1.startswith('[') else url1
+ url2 = f'[{url2}]({url2})' if url2 and not url2.startswith('[') else url2
+ line = f'| {name} | {url1} | {url2} |'
+ debug_log(line, "Row processed")
+ else:
+ debug_log(line, "Row not matched")
+ else:
+ debug_log(line, "Row found outside of table")
+ else:
+ if in_table:
+ in_table = False
+ debug_log(line, "End of table detected")
+
+ output_lines.append(line)
+
+ new_content = '\n'.join(output_lines)
+
+ with open(output_file, 'w') as f:
+ f.write(new_content)
+
+# Run the function
+convert_table_links()
|