Skip to content

Commit 77701b0

Browse files
authored
Merge pull request #5 from Cloud2BR-MSFTLearningHub/chore/update-cloud2br-org-name
Update docs for Cloud2BR org rename
2 parents 781c984 + 679bc1e commit 77701b0

14 files changed

Lines changed: 66 additions & 47 deletions

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

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,34 @@ jobs:
6666
GIT_COMMITTER_NAME: github-actions[bot]
6767
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
6868
run: |
69+
set -euo pipefail
70+
6971
# Ensure we're on the correct branch
7072
git switch -c "$PR_BRANCH" || git switch "$PR_BRANCH"
71-
72-
# Stage and commit changes if any
73+
74+
# Rebase onto the latest remote branch state before creating a commit.
75+
git fetch origin "$PR_BRANCH"
76+
git rebase "origin/$PR_BRANCH"
77+
78+
# Stage and commit changes if any.
7379
git add -A
74-
git diff --staged --quiet || git commit -m "Update visitor count"
75-
76-
# Pull and merge existing changes
77-
git pull origin "$PR_BRANCH" --no-rebase
78-
79-
# Push all changes
80-
git push origin "$PR_BRANCH"
80+
if git diff --staged --quiet; then
81+
echo "No changes to commit"
82+
exit 0
83+
fi
84+
85+
git commit -m "Update visitor count"
86+
87+
# Retry the push after rebasing if another update lands first.
88+
for attempt in 1 2 3; do
89+
if git push origin HEAD:"$PR_BRANCH"; then
90+
exit 0
91+
fi
92+
93+
echo "Push rejected on attempt $attempt; fetching and rebasing"
94+
git fetch origin "$PR_BRANCH"
95+
git rebase "origin/$PR_BRANCH"
96+
done
97+
98+
echo "Failed to push visitor count updates after 3 attempts"
99+
exit 1

BestPractices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77

88
Last updated: 2025-08-04
@@ -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-1370-limegreen" alt="Total views">
100-
<p>Refresh Date: 2026-03-26</p>
99+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
100+
<p>Refresh Date: 2026-04-06</p>
101101
</div>
102102
<!-- END BADGE -->
103103

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Microsoft Cloud Sandbox - Unofficial
3+
Copyright (c) 2025 Cloud2BR Open Source Microsoft Cloud Sandbox - Learning Hub
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2026-03-10
88

@@ -482,8 +482,8 @@ gh codespace stop
482482

483483
<!-- START BADGE -->
484484
<div align="center">
485-
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
486-
<p>Refresh Date: 2026-03-26</p>
485+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
486+
<p>Refresh Date: 2026-04-06</p>
487487
</div>
488488
<!-- END BADGE -->
489489

demos/0_GitHub_AI_models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2025-08-04
88

@@ -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-1370-limegreen" alt="Total views">
198-
<p>Refresh Date: 2026-03-26</p>
197+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
198+
<p>Refresh Date: 2026-04-06</p>
199199
</div>
200200
<!-- END BADGE -->
201201

demos/1_GitHubPagesOverview/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2026-03-26
88

@@ -15,7 +15,7 @@ Last updated: 2026-03-26
1515

1616
- [Websites for you and your projects](https://pages.github.com/)
1717
- [Essentials of automated application deployment with GitHub Actions and GitHub Pages](https://resources.github.com/learn/pathways/automation/essentials/automated-application-deployment-with-github-actions-and-pages/)
18-
- [Microsoft Cloud Sandbox - Unofficial](https://microsoftcloudessentials-learninghub.github.io/org-catalog/) One example was a catalog that aggregated multiple repositories from my GitHub organization. The idea behind it was to create a userfriendly page that listed all repositories hosted within the organization, while also allowing them to be filtered based on GitHub metadata by [Org Catalog (GitHub Pages)](https://github.com/MicrosoftCloudEssentials-LearningHub/org-catalog)
18+
- [Cloud2BR Open Source Microsoft Cloud Sandbox - Learning Hub](https://cloud2br-msftlearninghub.github.io/org-catalog/) One example was a catalog that aggregated multiple repositories from my GitHub organization. The idea behind it was to create a user-friendly page that listed all repositories hosted within the organization, while also allowing them to be filtered based on GitHub metadata by [Org Catalog (GitHub Pages)](https://github.com/Cloud2BR-MSFTLearningHub/org-catalog)
1919
- [TechWorkshop L300: Win the database acceleration](https://microsoft.github.io/TechExcel-Win-the-Database-Platform/) Example of Workshops documented using GitHub Pages
2020

2121
</details>
@@ -84,7 +84,7 @@ Last updated: 2026-03-26
8484

8585
<!-- START BADGE -->
8686
<div align="center">
87-
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
88-
<p>Refresh Date: 2026-03-26</p>
87+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
88+
<p>Refresh Date: 2026-04-06</p>
8989
</div>
9090
<!-- END BADGE -->

demos/2_GitHub_Copilot_Licenses.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2025-10-07
88

@@ -169,7 +169,7 @@ https://github.com/user-attachments/assets/3c993648-8a8d-4b5d-be79-19850aeef593
169169

170170
<!-- START BADGE -->
171171
<div align="center">
172-
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
173-
<p>Refresh Date: 2026-03-26</p>
172+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
173+
<p>Refresh Date: 2026-04-06</p>
174174
</div>
175175
<!-- END BADGE -->

demos/3_GH_cmds_Overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2026-01-20
88

@@ -66,7 +66,7 @@ Last updated: 2026-01-20
6666
6767
<!-- START BADGE -->
6868
<div align="center">
69-
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
70-
<p>Refresh Date: 2026-03-26</p>
69+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
70+
<p>Refresh Date: 2026-04-06</p>
7171
</div>
7272
<!-- END BADGE -->

demos/4_GitLab_migration_GH.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2026-01-25
88

@@ -114,7 +114,7 @@ https://github.com/user-attachments/assets/fffbbce1-8a48-49f7-a8d8-96da6d9c433e
114114

115115
<!-- START BADGE -->
116116
<div align="center">
117-
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
118-
<p>Refresh Date: 2026-03-26</p>
117+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
118+
<p>Refresh Date: 2026-04-06</p>
119119
</div>
120120
<!-- END BADGE -->

demos/5_GH_ADO_Defender_art_Overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Costa Rica
44

5-
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [brown9804](https://github.com/brown9804)
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/) [Cloud2BR OSS - Learning Hub](https://github.com/Cloud2BR-MSFTLearningHub)
66

77
Last updated: 2026-03-13
88

@@ -246,7 +246,7 @@ flowchart LR
246246

247247
<!-- START BADGE -->
248248
<div align="center">
249-
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
250-
<p>Refresh Date: 2026-03-26</p>
249+
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
250+
<p>Refresh Date: 2026-04-06</p>
251251
</div>
252252
<!-- END BADGE -->

0 commit comments

Comments
 (0)