Skip to content

Commit 3baf70e

Browse files
authored
Merge pull request #1 from MicrosoftCloudEssentials-LearningHub/upgrade-pipelines-counter-logic
Upgrade pipelines counter logic
2 parents b25038e + 17127bf commit 3baf70e

File tree

20 files changed

+232
-196
lines changed

20 files changed

+232
-196
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
pull-requests: write
1011

1112
jobs:
1213
update-date:
@@ -35,7 +36,12 @@ jobs:
3536
run: python .github/workflows/update_date.py
3637

3738
- name: Commit changes
39+
env:
40+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
3841
run: |
42+
git fetch origin ${{ github.event.pull_request.head.ref }}
43+
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
3944
git add -A
4045
git commit -m "Update last modified date in Markdown files" || echo "No changes to commit"
46+
git remote set-url origin https://x-access-token:${TOKEN}@github.com/${{ github.repository }}
4147
git push origin HEAD:${{ github.event.pull_request.head.ref }}

.github/workflows/validate_and_fix_markdown.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
pull-requests: write
1011

1112
jobs:
1213
validate-and-fix-markdown:
@@ -34,11 +35,11 @@ jobs:
3435
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3536
git config --global user.name "github-actions[bot]"
3637
37-
- name: Commit changes
38+
- name: Commit and rebase changes
39+
env:
40+
PR_BRANCH: ${{ github.head_ref || github.ref_name }}
3841
run: |
39-
git fetch origin
40-
git checkout -b ${{ github.event.pull_request.head.ref }} origin/${{ github.event.pull_request.head.ref }}
4142
git add -A
4243
git commit -m "Fix Markdown syntax issues" || echo "No changes to commit"
43-
git pull --rebase origin ${{ github.event.pull_request.head.ref }} || echo "No rebase needed"
44-
git push origin HEAD:${{ github.event.pull_request.head.ref }}
44+
git pull --rebase origin "$PR_BRANCH" || echo "No rebase needed"
45+
git push origin HEAD:"$PR_BRANCH"

Purview/Cost-Estimation.md

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

9-
Last updated: 2025-04-01
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -159,9 +159,9 @@ Assumptions:
159159
- **Efficient Data Management**: Use incremental loads and data partitioning to minimize scan duration.
160160
- **Monitor Usage**: Regularly monitor your usage and costs using Azure Cost Management tools to identify areas for optimization.
161161

162-
163-
162+
<!-- START BADGE -->
164163
<div align="center">
165-
<h3 style="color: #4CAF50;">Total Visitors</h3>
166-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
164+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
165+
<p>Refresh Date: 2025-07-16</p>
167166
</div>
167+
<!-- END BADGE -->

Purview/DLP-Overview.md

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

9-
Last updated: 2024-11-19
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -77,7 +77,9 @@ Last updated: 2024-11-19
7777
- **Example**: A custom connector for an email gateway that handles outbound emails.
7878
- **Usage**: Applies DLP policies to monitor and prevent the leakage of sensitive information through email communications.
7979

80+
<!-- START BADGE -->
8081
<div align="center">
81-
<h3 style="color: #4CAF50;">Total Visitors</h3>
82-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
82+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
83+
<p>Refresh Date: 2025-07-16</p>
8384
</div>
85+
<!-- END BADGE -->

Purview/DLP-implementation.md

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

9-
Last updated: 2025-03-24
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -93,7 +93,9 @@ https://github.com/user-attachments/assets/eb3d57d3-5bef-43f2-b069-1d25c3ef047b
9393
- **Endpoint DLP**: Configure settings for endpoint devices to restrict actions like copying, printing, or transferring sensitive data
9494
- **Integration with Microsoft Defender**: Extend DLP alerts to Microsoft Defender XDR and Microsoft Sentinel for advanced threat detection and response
9595

96+
<!-- START BADGE -->
9697
<div align="center">
97-
<h3 style="color: #4CAF50;">Total Visitors</h3>
98-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
98+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
99+
<p>Refresh Date: 2025-07-16</p>
99100
</div>
101+
<!-- END BADGE -->

Purview/Free-and-Enterprise.md

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

9-
Last updated: 2024-11-19
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -530,7 +530,9 @@ This integration supports capturing metadata such as:
530530
- Airflow DAG
531531
- Airflow task
532532

533+
<!-- START BADGE -->
533534
<div align="center">
534-
<h3 style="color: #4CAF50;">Total Visitors</h3>
535-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
535+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
536+
<p>Refresh Date: 2025-07-16</p>
536537
</div>
538+
<!-- END BADGE -->

README.md

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

9-
Last updated: 2025-06-03
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -250,8 +250,9 @@ Click here to read more about a [quick guide on Azure Cache for Redis](./nosql/a
250250

251251
</details>
252252

253-
253+
<!-- START BADGE -->
254254
<div align="center">
255-
<h3 style="color: #4CAF50;">Total Visitors</h3>
256-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
255+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
256+
<p>Refresh Date: 2025-07-16</p>
257257
</div>
258+
<!-- END BADGE -->

_news/az-mysql.md

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

9-
Last updated: 2025-06-03
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -101,9 +101,9 @@ Last updated: 2025-06-03
101101
- **Monitor performance** using Query Performance Insight and Azure Monitor.
102102
- **Adopt serverless** for dev/test or variable workloads to optimize cost.
103103

104+
<!-- START BADGE -->
104105
<div align="center">
105-
<h3 style="color: #4CAF50;">Total Visitors</h3>
106-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
106+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
107+
<p>Refresh Date: 2025-07-16</p>
107108
</div>
108-
109-
109+
<!-- END BADGE -->

_news/az-sql-mi.md

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

9-
Last updated: 2025-06-03
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -95,7 +95,9 @@ Last updated: 2025-06-03
9595
- **Monitor performance** using Database Watcher and Azure Monitor.
9696
- **Use Modernization Advisor** to evaluate migration from SQL Server VMs.
9797

98+
<!-- START BADGE -->
9899
<div align="center">
99-
<h3 style="color: #4CAF50;">Total Visitors</h3>
100-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
100+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
101+
<p>Refresh Date: 2025-07-16</p>
101102
</div>
103+
<!-- END BADGE -->

nosql/azure-cache-for-redis/README.md

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

9-
Last updated: 2025-06-03
9+
Last updated: 2025-07-17
1010

1111
----------
1212

@@ -75,7 +75,9 @@ print(value)
7575
- **Data Partitioning**: Use Redis clustering to distribute data across multiple nodes.
7676
- **Cache Expiration**: Configure expiration policies to manage memory usage effectively.
7777

78+
<!-- START BADGE -->
7879
<div align="center">
79-
<h3 style="color: #4CAF50;">Total Visitors</h3>
80-
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
80+
<img src="https://img.shields.io/badge/Total%20views-31-limegreen" alt="Total views">
81+
<p>Refresh Date: 2025-07-16</p>
8182
</div>
83+
<!-- END BADGE -->

0 commit comments

Comments
 (0)