Run changelog Script #1
Workflow file for this run
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: Run changelog Script | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
updateChangelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 # install the python needed | |
- name: Install dependencies | |
run: | | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: execute py script | |
run: | | |
python scripts/changelog.py > CHANGELOG.md | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Update CHANGELOG.md" | |
git push origin HEAD:main |