From 812c80e400e5d4819ff419ca7603e99f111c82a3 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:43:03 -0600 Subject: [PATCH 01/12] pull -> push --- .github/workflows/update-md-date.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/update-md-date.yml b/.github/workflows/update-md-date.yml index 96dc9d7..ac7a96d 100644 --- a/.github/workflows/update-md-date.yml +++ b/.github/workflows/update-md-date.yml @@ -7,6 +7,7 @@ on: permissions: contents: write + pull-requests: write jobs: update-date: @@ -35,7 +36,12 @@ jobs: run: python .github/workflows/update_date.py - name: Commit changes + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + git fetch origin ${{ github.event.pull_request.head.ref }} + git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed" git add -A git commit -m "Update last modified date in Markdown files" || echo "No changes to commit" + git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }} git push origin HEAD:${{ github.event.pull_request.head.ref }} From 734518011baaf467a111771b1af91408a60be6fc Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:45:05 -0600 Subject: [PATCH 02/12] adjusting badge format --- azML-modelcreation/data/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azML-modelcreation/data/README.md b/azML-modelcreation/data/README.md index 221f295..e2c0544 100644 --- a/azML-modelcreation/data/README.md +++ b/azML-modelcreation/data/README.md @@ -18,8 +18,9 @@ Last updated: 2025-04-29 - **Department**: The department where the employee works (e.g., HR, Engineering, Sales). - **Salary**: The employee's annual salary in USD, ranging from \$40,000 to \$120,000. - +
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From ffeb843f05492ff02d6fc6c9ef02e9ae16b64a4b Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:46:56 -0600 Subject: [PATCH 03/12] change badge format --- azML-modelcreation/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/azML-modelcreation/README.md b/azML-modelcreation/README.md index 50c8ae5..0968309 100644 --- a/azML-modelcreation/README.md +++ b/azML-modelcreation/README.md @@ -9,7 +9,6 @@ Last updated: 2025-05-06 ------------------------------------------ -
List of References (Click to expand) @@ -299,9 +298,9 @@ https://github.com/user-attachments/assets/1b3e5602-dc64-4c39-be72-ed1cbd74361e > Once deployed, you can send HTTP requests to the endpoint to get predictions. - - +
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From 2cb0032190e271ea7aa59cd170328ef0cd399577 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:48:41 -0600 Subject: [PATCH 04/12] change badge format --- infrastructure/azMachineLearning/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/azMachineLearning/README.md b/infrastructure/azMachineLearning/README.md index 382d3f3..68eaabe 100644 --- a/infrastructure/azMachineLearning/README.md +++ b/infrastructure/azMachineLearning/README.md @@ -141,7 +141,9 @@ graph TD; terraform destroy -var-file terraform.tfvars ``` +
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From 56dc2b074b570d5a9c044dcccfef3f65f54f1c7f Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:49:36 -0600 Subject: [PATCH 05/12] change badge format --- infrastructure/msFabric/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/msFabric/README.md b/infrastructure/msFabric/README.md index c0423ed..3b17bab 100644 --- a/infrastructure/msFabric/README.md +++ b/infrastructure/msFabric/README.md @@ -154,7 +154,9 @@ graph TD; image +
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From f12b05d8fc274d339903ac833cc768bc3caca60d Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:50:31 -0600 Subject: [PATCH 06/12] change badge format --- infrastructure/msFabric/troubleshooting.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/msFabric/troubleshooting.md b/infrastructure/msFabric/troubleshooting.md index 6888bdb..58015c3 100644 --- a/infrastructure/msFabric/troubleshooting.md +++ b/infrastructure/msFabric/troubleshooting.md @@ -183,7 +183,9 @@ Error: Failed to get existing workspaces: Error retrieving keys for Storage Acco image

+
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From 98e920bf099d8b1e5e4d83becd20f1c8db7f2168 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:51:23 -0600 Subject: [PATCH 07/12] change badge format --- msFabric-AI_integration/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/msFabric-AI_integration/README.md b/msFabric-AI_integration/README.md index e5e93ea..1652f1a 100644 --- a/msFabric-AI_integration/README.md +++ b/msFabric-AI_integration/README.md @@ -397,7 +397,9 @@ Make sure to replace `"your_openai_api_key"`, `"https://your_openai_api_base/"`, pprint(dict(rm), indent=4) ``` +
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From d96dfb01aee482d5152613be1d9f275ac46e0258 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:52:02 -0600 Subject: [PATCH 08/12] change badge format --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7722051..2877291 100644 --- a/README.md +++ b/README.md @@ -286,8 +286,9 @@ Read more about [Endpoints for inference in production](https://learn.microsoft.
- +
-

Total Visitors

- Visitor Count + Total views +

Refresh Date: 2025-07-16

+ From ae76a01516ea96dd84cf5ff238531fa51ed8dd44 Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:55:15 -0600 Subject: [PATCH 09/12] adding counter pipeline --- .github/workflows/use-visitor-counter.yml | 94 +++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .github/workflows/use-visitor-counter.yml diff --git a/.github/workflows/use-visitor-counter.yml b/.github/workflows/use-visitor-counter.yml new file mode 100644 index 0000000..4aa2c96 --- /dev/null +++ b/.github/workflows/use-visitor-counter.yml @@ -0,0 +1,94 @@ +name: Use Visitor Counter Logic + +on: + pull_request: + branches: + - main + schedule: + - cron: '0 0 * * *' # Runs daily at midnight + workflow_dispatch: # Allows manual triggering + +permissions: + contents: write + pull-requests: write + +jobs: + update-visitor-count: + runs-on: ubuntu-latest + + steps: + - name: Checkout current repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Shallow clone visitor counter logic + run: git clone --depth=1 https://github.com/brown9804/github-visitor-counter.git + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies for github-visitor-counter + run: | + cd github-visitor-counter + npm ci + + - name: Run visitor counter logic (updates markdown badges and metrics.json) + run: node github-visitor-counter/update_repo_views_counter.js + env: + TRAFFIC_TOKEN: ${{ secrets.TRAFFIC_TOKEN }} + REPO: ${{ github.repository }} + + - name: Move generated metrics.json to root + run: mv github-visitor-counter/metrics.json . + + - name: List files for debugging + run: | + ls -l + ls -l github-visitor-counter + + - name: Clean up visitor counter logic + run: rm -rf github-visitor-counter + + - name: Configure Git author + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Commit and push changes (PR) + if: github.event_name == 'pull_request' + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git fetch origin + git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }} + git add "*.md" metrics.json + git commit -m "Update visitor count" || echo "No changes to commit" + git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }} + git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed" + git push origin HEAD:${{ github.event.pull_request.head.ref }} + + - name: Commit and push changes (non-PR) + if: github.event_name != 'pull_request' + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git fetch origin + git checkout ${{ github.event.pull_request.head.ref }} || git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }} + git add "*.md" metrics.json + git commit -m "Update visitor count" || echo "No changes to commit" + git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }} + git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed" + git push origin HEAD:${{ github.event.pull_request.head.ref }} + + - name: Create Pull Request (non-PR) + if: github.event_name != 'pull_request' + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: update-visitor-count + title: "Update visitor count" + body: "Automated update of visitor count" + base: main From 516116da083455c0efa623dfb3d90f039134274c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 16 Jul 2025 22:56:07 +0000 Subject: [PATCH 10/12] Update last modified date in Markdown files --- README.md | 2 +- azML-modelcreation/README.md | 2 +- azML-modelcreation/data/README.md | 2 +- infrastructure/azMachineLearning/README.md | 2 +- infrastructure/msFabric/README.md | 2 +- infrastructure/msFabric/troubleshooting.md | 2 +- msFabric-AI_integration/README.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2877291..9d0f8b8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-05-06 +Last updated: 2025-07-16 ------------------------------------------ diff --git a/azML-modelcreation/README.md b/azML-modelcreation/README.md index 0968309..00dc8ea 100644 --- a/azML-modelcreation/README.md +++ b/azML-modelcreation/README.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-05-06 +Last updated: 2025-07-16 ------------------------------------------ diff --git a/azML-modelcreation/data/README.md b/azML-modelcreation/data/README.md index e2c0544..57bd0af 100644 --- a/azML-modelcreation/data/README.md +++ b/azML-modelcreation/data/README.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-04-29 +Last updated: 2025-07-16 ------------------------------------------ diff --git a/infrastructure/azMachineLearning/README.md b/infrastructure/azMachineLearning/README.md index 68eaabe..06f0fb6 100644 --- a/infrastructure/azMachineLearning/README.md +++ b/infrastructure/azMachineLearning/README.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-04-29 +Last updated: 2025-07-16 ------------------------------------------ diff --git a/infrastructure/msFabric/README.md b/infrastructure/msFabric/README.md index 3b17bab..b6915fc 100644 --- a/infrastructure/msFabric/README.md +++ b/infrastructure/msFabric/README.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-04-29 +Last updated: 2025-07-16 ------------------------------------------ diff --git a/infrastructure/msFabric/troubleshooting.md b/infrastructure/msFabric/troubleshooting.md index 58015c3..b7ba32b 100644 --- a/infrastructure/msFabric/troubleshooting.md +++ b/infrastructure/msFabric/troubleshooting.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-04-29 +Last updated: 2025-07-16 ------------------------------------------ diff --git a/msFabric-AI_integration/README.md b/msFabric-AI_integration/README.md index 1652f1a..fb36f97 100644 --- a/msFabric-AI_integration/README.md +++ b/msFabric-AI_integration/README.md @@ -5,7 +5,7 @@ Costa Rica [![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804) -Last updated: 2025-04-29 +Last updated: 2025-07-16 ------------------------------------------ From e7dcfb468b0a28b3111b26546e0c10117b0c717d Mon Sep 17 00:00:00 2001 From: Timna Brown <24630902+brown9804@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:58:13 -0600 Subject: [PATCH 11/12] adding condition pull before push --- .github/workflows/use-visitor-counter.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/use-visitor-counter.yml b/.github/workflows/use-visitor-counter.yml index 4aa2c96..d5c9ec1 100644 --- a/.github/workflows/use-visitor-counter.yml +++ b/.github/workflows/use-visitor-counter.yml @@ -57,31 +57,33 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" + # Commit and push logic for PR events - name: Commit and push changes (PR) if: github.event_name == 'pull_request' env: TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git fetch origin - git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }} + git checkout ${{ github.head_ref }} git add "*.md" metrics.json git commit -m "Update visitor count" || echo "No changes to commit" git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }} - git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed" - git push origin HEAD:${{ github.event.pull_request.head.ref }} + git pull --rebase origin ${{ github.head_ref }} || echo "No rebase needed" + git push origin HEAD:${{ github.head_ref }} + # Commit and push logic for non-PR events (schedule, workflow_dispatch) - name: Commit and push changes (non-PR) if: github.event_name != 'pull_request' env: TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git fetch origin - git checkout ${{ github.event.pull_request.head.ref }} || git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }} + git checkout ${{ github.ref_name }} || git checkout -b ${{ github.ref_name }} origin/${{ github.ref_name }} git add "*.md" metrics.json git commit -m "Update visitor count" || echo "No changes to commit" git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }} - git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed" - git push origin HEAD:${{ github.event.pull_request.head.ref }} + git pull --rebase origin ${{ github.ref_name }} || echo "No rebase needed" + git push origin HEAD:${{ github.ref_name }} - name: Create Pull Request (non-PR) if: github.event_name != 'pull_request' From 1d10d92b4e5eb77ce972d84be24dd60386f21b4b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 16 Jul 2025 22:58:26 +0000 Subject: [PATCH 12/12] Update visitor count --- README.md | 2 +- azML-modelcreation/README.md | 2 +- azML-modelcreation/data/README.md | 2 +- infrastructure/azMachineLearning/README.md | 2 +- infrastructure/msFabric/README.md | 2 +- infrastructure/msFabric/troubleshooting.md | 2 +- metrics.json | 37 ++++++++++++++++++++++ msFabric-AI_integration/README.md | 2 +- 8 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 metrics.json diff --git a/README.md b/README.md index 9d0f8b8..aafd9b1 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ Read more about [Endpoints for inference in production](https://learn.microsoft.
- Total views + Total views

Refresh Date: 2025-07-16

diff --git a/azML-modelcreation/README.md b/azML-modelcreation/README.md index 00dc8ea..34e227a 100644 --- a/azML-modelcreation/README.md +++ b/azML-modelcreation/README.md @@ -300,7 +300,7 @@ https://github.com/user-attachments/assets/1b3e5602-dc64-4c39-be72-ed1cbd74361e
- Total views + Total views

Refresh Date: 2025-07-16

diff --git a/azML-modelcreation/data/README.md b/azML-modelcreation/data/README.md index 57bd0af..23cd9b1 100644 --- a/azML-modelcreation/data/README.md +++ b/azML-modelcreation/data/README.md @@ -20,7 +20,7 @@ Last updated: 2025-07-16
- Total views + Total views

Refresh Date: 2025-07-16

diff --git a/infrastructure/azMachineLearning/README.md b/infrastructure/azMachineLearning/README.md index 06f0fb6..6e736cd 100644 --- a/infrastructure/azMachineLearning/README.md +++ b/infrastructure/azMachineLearning/README.md @@ -143,7 +143,7 @@ graph TD;
- Total views + Total views

Refresh Date: 2025-07-16

diff --git a/infrastructure/msFabric/README.md b/infrastructure/msFabric/README.md index b6915fc..f167664 100644 --- a/infrastructure/msFabric/README.md +++ b/infrastructure/msFabric/README.md @@ -156,7 +156,7 @@ graph TD;
- Total views + Total views

Refresh Date: 2025-07-16

diff --git a/infrastructure/msFabric/troubleshooting.md b/infrastructure/msFabric/troubleshooting.md index b7ba32b..9068519 100644 --- a/infrastructure/msFabric/troubleshooting.md +++ b/infrastructure/msFabric/troubleshooting.md @@ -185,7 +185,7 @@ Error: Failed to get existing workspaces: Error retrieving keys for Storage Acco
- Total views + Total views

Refresh Date: 2025-07-16

diff --git a/metrics.json b/metrics.json new file mode 100644 index 0000000..8665541 --- /dev/null +++ b/metrics.json @@ -0,0 +1,37 @@ +[ + { + "date": "2025-07-07", + "count": 330, + "uniques": 20 + }, + { + "date": "2025-07-08", + "count": 159, + "uniques": 6 + }, + { + "date": "2025-07-10", + "count": 482, + "uniques": 1 + }, + { + "date": "2025-07-11", + "count": 170, + "uniques": 4 + }, + { + "date": "2025-07-12", + "count": 7, + "uniques": 1 + }, + { + "date": "2025-07-14", + "count": 130, + "uniques": 2 + }, + { + "date": "2025-07-15", + "count": 2, + "uniques": 1 + } +] \ No newline at end of file diff --git a/msFabric-AI_integration/README.md b/msFabric-AI_integration/README.md index fb36f97..23efbcf 100644 --- a/msFabric-AI_integration/README.md +++ b/msFabric-AI_integration/README.md @@ -399,7 +399,7 @@ Make sure to replace `"your_openai_api_key"`, `"https://your_openai_api_base/"`,
- Total views + Total views

Refresh Date: 2025-07-16