Skip to content

Commit d2b81dc

Browse files
authored
Merge pull request #23 from brown9804/testing-all-e2e
testing
2 parents 0abaa93 + c090ff9 commit d2b81dc

47 files changed

Lines changed: 119 additions & 118 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/use-visitor-counter.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
- main
77
schedule:
88
- cron: '0 0 * * *' # Runs daily at midnight
9-
workflow_dispatch: # Allows manual triggering
9+
workflow_dispatch: # Allows manual triggering
1010

1111
permissions:
1212
contents: write
1313
pull-requests: write
1414

1515
jobs:
16-
use-counter-logic:
16+
update-visitor-count:
1717
runs-on: ubuntu-latest
1818

1919
steps:
@@ -22,61 +22,62 @@ jobs:
2222
with:
2323
fetch-depth: 0
2424

25-
- name: Clone github-visitor-counter repository temporarily
26-
run: git clone https://github.com/brown9804/github-visitor-counter.git
25+
- name: Shallow clone visitor counter logic
26+
run: git clone --depth=1 https://github.com/brown9804/github-visitor-counter.git
2727

2828
- name: Set up Node.js
29-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3030
with:
3131
node-version: '20'
3232

3333
- name: Install dependencies for github-visitor-counter
3434
run: |
3535
cd github-visitor-counter
36-
npm install
36+
npm ci
3737
38-
- name: Run visitor counter logic
39-
run: |
40-
cd github-visitor-counter
41-
node update_repo_views_counter.js
38+
- name: Run visitor counter logic (updates markdown badges and metrics.json)
39+
run: node github-visitor-counter/update_repo_views_counter.js
4240
env:
4341
TRAFFIC_TOKEN: ${{ secrets.TRAFFIC_TOKEN }}
4442
REPO: ${{ github.repository }}
4543

46-
- name: Move generated files to current repository
44+
- name: Move generated metrics.json to root
45+
run: mv github-visitor-counter/metrics.json .
46+
47+
- name: List files for debugging
4748
run: |
48-
mv github-visitor-counter/metrics.json .
49-
mv github-visitor-counter/README.md .
49+
ls -l
50+
ls -l github-visitor-counter
5051
51-
- name: Clean up temporary files
52+
- name: Clean up visitor counter logic
5253
run: rm -rf github-visitor-counter
5354

54-
- name: Configure Git
55+
- name: Configure Git author
5556
run: |
5657
git config --global user.name "github-actions[bot]"
5758
git config --global user.email "github-actions[bot]@users.noreply.github.com"
5859
59-
- name: Commit and push to PR branch
60+
- name: Commit and push changes (PR)
6061
if: github.event_name == 'pull_request'
6162
env:
6263
TOKEN: ${{ secrets.GITHUB_TOKEN }}
6364
run: |
6465
git fetch origin
6566
git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }}
66-
git add README.md metrics.json
67+
git add "*.md" metrics.json
6768
git commit -m "Update visitor count" || echo "No changes to commit"
6869
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
6970
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
7071
git push origin HEAD:${{ github.event.pull_request.head.ref }}
7172
72-
- name: Commit and push to new branch (non-PR)
73+
- name: Commit and push changes (non-PR)
7374
if: github.event_name != 'pull_request'
7475
env:
7576
TOKEN: ${{ secrets.GITHUB_TOKEN }}
7677
run: |
7778
git fetch origin
7879
git checkout ${{ github.event.pull_request.head.ref }} || git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }}
79-
git add README.md metrics.json
80+
git add "*.md" metrics.json
8081
git commit -m "Update visitor count" || echo "No changes to commit"
8182
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
8283
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"

Agile/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ Costa Rica
55
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
66
[brown9804](https://github.com/brown9804)
77

8-
Last updated: 2024-12-13
8+
Last updated: 2025-07-11
99

1010
----------
1111

12-
## Wiki
13-
1412
<details>
15-
<summary><b>Table of Wiki</b> (Click to expand)</summary>
13+
<summary><b>List of References</b> (Click to expand)</summary>
1614

1715
- [The Basics](https://www.linkedin.com/learning/scrum-the-basics/practicing-scrum-in-your-work-environment?u=2095204)
1816
- [Agile Methodology](https://medium.com/@abeythilakeudara3/agile-methodology-106270809c99)
@@ -24,7 +22,9 @@ Last updated: 2024-12-13
2422

2523
<img width="800" alt="image" src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*GtEtKSrRQtLhx_gffxFhSA.png">
2624

25+
<!-- START BADGE -->
2726
<div align="center">
28-
<h3 style="color: #4CAF50;">Total Visitors</h3>
29-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
27+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
28+
<p>Refresh Date: 2025-07-11</p>
3029
</div>
30+
<!-- END BADGE -->

Cloud/0-linux/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Last updated: 2025-07-11
2828

2929
<!-- START BADGE -->
3030
<div align="center">
31-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
32-
<p>Refresh Date: 2025-07-10</p>
31+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
32+
<p>Refresh Date: 2025-07-11</p>
3333
</div>
3434
<!-- END BADGE -->

Cloud/0-linux/lab0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
142142

143143
<!-- START BADGE -->
144144
<div align="center">
145-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
146-
<p>Refresh Date: 2025-07-10</p>
145+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
146+
<p>Refresh Date: 2025-07-11</p>
147147
</div>
148148
<!-- END BADGE -->

Cloud/0-linux/lab1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
133133

134134
<!-- START BADGE -->
135135
<div align="center">
136-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
137-
<p>Refresh Date: 2025-07-10</p>
136+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
137+
<p>Refresh Date: 2025-07-11</p>
138138
</div>
139139
<!-- END BADGE -->

Cloud/0-linux/lab2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
143143

144144
<!-- START BADGE -->
145145
<div align="center">
146-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
147-
<p>Refresh Date: 2025-07-10</p>
146+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
147+
<p>Refresh Date: 2025-07-11</p>
148148
</div>
149149
<!-- END BADGE -->

Cloud/0-linux/lab3/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
101101

102102
<!-- START BADGE -->
103103
<div align="center">
104-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
105-
<p>Refresh Date: 2025-07-10</p>
104+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
105+
<p>Refresh Date: 2025-07-11</p>
106106
</div>
107107
<!-- END BADGE -->

Cloud/0-linux/lab4/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
285285

286286
<!-- START BADGE -->
287287
<div align="center">
288-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
289-
<p>Refresh Date: 2025-07-10</p>
288+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
289+
<p>Refresh Date: 2025-07-11</p>
290290
</div>
291291
<!-- END BADGE -->
292292

Cloud/0-linux/lab5/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
136136

137137
<!-- START BADGE -->
138138
<div align="center">
139-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
140-
<p>Refresh Date: 2025-07-10</p>
139+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
140+
<p>Refresh Date: 2025-07-11</p>
141141
</div>
142142
<!-- END BADGE -->
143143

Cloud/0-linux/lab6/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ https://learn.acloud.guru/course/cad92c58-0fd2-4657-98f7-79268b4ff2db/dashboard
233233

234234
<!-- START BADGE -->
235235
<div align="center">
236-
<img src="https://img.shields.io/badge/Total%20views-195-limegreen" alt="Total views">
237-
<p>Refresh Date: 2025-07-10</p>
236+
<img src="https://img.shields.io/badge/Total%20views-456-limegreen" alt="Total views">
237+
<p>Refresh Date: 2025-07-11</p>
238238
</div>
239239
<!-- END BADGE -->

0 commit comments

Comments
 (0)