Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 28 additions & 9 deletions .github/workflows/use-visitor-counter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,34 @@ jobs:
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
run: |
set -euo pipefail

# Ensure we're on the correct branch
git switch -c "$PR_BRANCH" || git switch "$PR_BRANCH"

# Stage and commit changes if any

# Rebase onto the latest remote branch state before creating a commit.
git fetch origin "$PR_BRANCH"
git rebase "origin/$PR_BRANCH"

# Stage and commit changes if any.
git add -A
git diff --staged --quiet || git commit -m "Update visitor count"

# Pull and merge existing changes
git pull origin "$PR_BRANCH" --no-rebase

# Push all changes
git push origin "$PR_BRANCH"
if git diff --staged --quiet; then
echo "No changes to commit"
exit 0
fi

git commit -m "Update visitor count"

# Retry the push after rebasing if another update lands first.
for attempt in 1 2 3; do
if git push origin HEAD:"$PR_BRANCH"; then
exit 0
fi

echo "Push rejected on attempt $attempt; fetching and rebasing"
git fetch origin "$PR_BRANCH"
git rebase "origin/$PR_BRANCH"
done

echo "Failed to push visitor count updates after 3 attempts"
exit 1
6 changes: 3 additions & 3 deletions BestPractices.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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


Last updated: 2025-08-04
Expand Down Expand Up @@ -96,8 +96,8 @@ Last updated: 2025-08-04

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

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-03-10

Expand Down Expand Up @@ -482,8 +482,8 @@ gh codespace stop

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

6 changes: 3 additions & 3 deletions demos/0_GitHub_AI_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2025-08-04

Expand Down Expand Up @@ -194,8 +194,8 @@ Last updated: 2025-08-04

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

8 changes: 4 additions & 4 deletions demos/1_GitHubPagesOverview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-03-26

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

- [Websites for you and your projects](https://pages.github.com/)
- [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/)
- [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)
- [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)
- [TechWorkshop L300: Win the database acceleration](https://microsoft.github.io/TechExcel-Win-the-Database-Platform/) Example of Workshops documented using GitHub Pages

</details>
Expand Down Expand Up @@ -84,7 +84,7 @@ Last updated: 2026-03-26

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/2_GitHub_Copilot_Licenses.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2025-10-07

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

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/3_GH_cmds_Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-01-20

Expand Down Expand Up @@ -66,7 +66,7 @@ Last updated: 2026-01-20

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/4_GitLab_migration_GH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-01-25

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

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/5_GH_ADO_Defender_art_Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-03-13

Expand Down Expand Up @@ -246,7 +246,7 @@ flowchart LR

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/6_AppDev_GH_Pricing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-01-25

Expand Down Expand Up @@ -210,7 +210,7 @@ https://github.com/user-attachments/assets/de20f063-d70a-42d0-bb64-dd6acef85c59

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/7_DevSecOps_Demo/RBACs_Access_CICD_Pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-01-25

Expand Down Expand Up @@ -56,7 +56,7 @@ From [End-to-end governance in Azure when using CI/CD](https://learn.microsoft.c

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/7_DevSecOps_Demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-01-25

Expand Down Expand Up @@ -386,7 +386,7 @@ https://github.com/user-attachments/assets/773adf4c-9ab4-429e-9c13-f6f8a06a4c2b

<!-- START BADGE -->
<div align="center">
<img src="https://img.shields.io/badge/Total%20views-1370-limegreen" alt="Total views">
<p>Refresh Date: 2026-03-26</p>
<img src="https://img.shields.io/badge/Total%20views-1329-limegreen" alt="Total views">
<p>Refresh Date: 2026-04-06</p>
</div>
<!-- END BADGE -->
6 changes: 3 additions & 3 deletions demos/8_ADO_Defender.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Costa Rica

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

Last updated: 2026-03-19

Expand Down Expand Up @@ -145,8 +145,8 @@ It’s especially strong when paired with:

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

Loading