Testing push to main branch #3 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |