Skip to content

Commit 99bf558

Browse files
authored
Merge pull request #1 from MicrosoftCloudEssentials-LearningHub/testing-pipelines
testingE2E
2 parents a7cc351 + 7f902d8 commit 99bf558

File tree

7 files changed

+58
-17
lines changed

7 files changed

+58
-17
lines changed

.github/workflows/update-md-date.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
update-date:
1014
runs-on: ubuntu-latest
1115

1216
steps:
13-
- name: Checkout repository
17+
- name: Checkout PR branch
1418
uses: actions/checkout@v4
1519
with:
1620
fetch-depth: 0
21+
ref: ${{ github.event.pull_request.head.ref }}
1722

1823
- name: Set up Python
1924
uses: actions/setup-python@v4
@@ -27,17 +32,17 @@ jobs:
2732
run: |
2833
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2934
git config --global user.name "github-actions[bot]"
30-
35+
3136
- name: Update last modified date in Markdown files
3237
run: python .github/workflows/update_date.py
3338

34-
- name: Commit changes
39+
- name: Pull (merge) remote changes, commit, and push if needed
3540
env:
3641
TOKEN: ${{ secrets.GITHUB_TOKEN }}
3742
run: |
38-
git fetch origin
39-
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
43+
BRANCH="${{ github.event.pull_request.head.ref }}"
44+
git pull origin "$BRANCH" || echo "No merge needed"
4045
git add -A
4146
git commit -m "Update last modified date in Markdown files" || echo "No changes to commit"
4247
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
43-
git push origin HEAD:${{ github.event.pull_request.head.ref }}
48+
git push origin HEAD:"$BRANCH"

BestPractices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ Last updated: 2025-08-04
9696

9797
<!-- START BADGE -->
9898
<div align="center">
99-
<img src="https://img.shields.io/badge/Total%20views-1312-limegreen" alt="Total views">
100-
<p>Refresh Date: 2025-08-27</p>
99+
<img src="https://img.shields.io/badge/Total%20views-1280-limegreen" alt="Total views">
100+
<p>Refresh Date: 2025-08-29</p>
101101
</div>
102102
<!-- END BADGE -->
103103

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,10 @@ gh codespace stop
459459
| **GitHub Actions** | Automation platform for CI/CD workflows, enabling testing, building, and deployment. | Streamlines development workflows by automating repetitive tasks.|
460460
| **GitHub Code Quality** | A forthcoming feature focused on improving code quality through automated analysis. | Aims to provide insights and recommendations to improve code maintainability and readability. |
461461

462-
463462
<!-- START BADGE -->
464463
<div align="center">
465-
<img src="https://img.shields.io/badge/Total%20views-1312-limegreen" alt="Total views">
466-
<p>Refresh Date: 2025-08-27</p>
464+
<img src="https://img.shields.io/badge/Total%20views-1280-limegreen" alt="Total views">
465+
<p>Refresh Date: 2025-08-29</p>
467466
</div>
468467
<!-- END BADGE -->
469468

demos/0_GithubAImodels.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ Last updated: 2025-08-04
194194

195195
<!-- START BADGE -->
196196
<div align="center">
197-
<img src="https://img.shields.io/badge/Total%20views-1312-limegreen" alt="Total views">
198-
<p>Refresh Date: 2025-08-27</p>
197+
<img src="https://img.shields.io/badge/Total%20views-1280-limegreen" alt="Total views">
198+
<p>Refresh Date: 2025-08-29</p>
199199
</div>
200200
<!-- END BADGE -->
201201

demos/1_GitHubPagesOverview/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Last updated: 2025-08-04
7171

7272
<!-- START BADGE -->
7373
<div align="center">
74-
<img src="https://img.shields.io/badge/Total%20views-1312-limegreen" alt="Total views">
75-
<p>Refresh Date: 2025-08-27</p>
74+
<img src="https://img.shields.io/badge/Total%20views-1280-limegreen" alt="Total views">
75+
<p>Refresh Date: 2025-08-29</p>
7676
</div>
7777
<!-- END BADGE -->

demos/2_Github-Licenses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ https://github.com/user-attachments/assets/3c993648-8a8d-4b5d-be79-19850aeef593
154154

155155
<!-- START BADGE -->
156156
<div align="center">
157-
<img src="https://img.shields.io/badge/Total%20views-1312-limegreen" alt="Total views">
158-
<p>Refresh Date: 2025-08-27</p>
157+
<img src="https://img.shields.io/badge/Total%20views-1280-limegreen" alt="Total views">
158+
<p>Refresh Date: 2025-08-29</p>
159159
</div>
160160
<!-- END BADGE -->
161161

metrics.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[
2+
{
3+
"date": "2025-07-07",
4+
"count": 330,
5+
"uniques": 20
6+
},
7+
{
8+
"date": "2025-07-08",
9+
"count": 159,
10+
"uniques": 6
11+
},
12+
{
13+
"date": "2025-07-10",
14+
"count": 482,
15+
"uniques": 1
16+
},
17+
{
18+
"date": "2025-07-11",
19+
"count": 170,
20+
"uniques": 4
21+
},
22+
{
23+
"date": "2025-07-12",
24+
"count": 7,
25+
"uniques": 1
26+
},
27+
{
28+
"date": "2025-07-14",
29+
"count": 130,
30+
"uniques": 2
31+
},
32+
{
33+
"date": "2025-07-15",
34+
"count": 2,
35+
"uniques": 1
36+
}
37+
]

0 commit comments

Comments
 (0)