-
Notifications
You must be signed in to change notification settings - Fork 39
40 lines (34 loc) · 1.05 KB
/
updateChangelogs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Update Changelogs
on:
push:
branches:
- master
jobs:
update-changelog-files:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install requests
pip install chardet
pip install py7zr
pip install packaging
- name: Update changelogs
run: |
python -u scripts/log_changes.py
- name: Commit and Push Changes
env:
TOKEN: ${{ secrets.GITHUB_ACTION_KEY }}
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add CHANGELOG.md
git commit -m "Updated main CHANGELOG.md file with latest merged release."
git push https://${TOKEN}:[email protected]/MikroElektronika/mikrosdk_v2.git HEAD:master