Skip to content

Commit 4bb8e19

Browse files
authored
Merge pull request #2 from MicrosoftCloudEssentials-LearningHub/update-date
update date - automation
2 parents ad6d5f2 + 136b9d0 commit 4bb8e19

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Last Modified Date
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-date:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: '3.x'
25+
26+
- name: Install dependencies
27+
run: pip install python-dateutil
28+
29+
- name: Configure Git
30+
run: |
31+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
git config --global user.name "github-actions[bot]"
33+
34+
- name: Update last modified date in Markdown files
35+
run: python .github/workflows/update_date.py
36+
37+
- name: Commit changes
38+
run: |
39+
git add -A
40+
git commit -m "Update last modified date in Markdown files" || echo "No changes to commit"
41+
git push origin HEAD:${{ github.event.pull_request.head.ref }}

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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: 2025-02-04
8+
Last updated: 2025-02-20
99

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

@@ -47,4 +47,3 @@ Please follow as described below:
4747
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
4848
</div>
4949

50-

0 commit comments

Comments
 (0)