Initial upload of infographics #172
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: Changelog generation | |
on: | |
push: | |
branches: [main] | |
jobs: | |
changelogs: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Generate changelogs | |
run: | | |
git log -z --reverse --pretty='format:%H %at %s%n%b' \ | |
--diff-filter=AM ${{ github.event.before }}.. \ | |
-- data-visualization/infographics/\*.ai | \ | |
_util/generate_changelogs.py ${{ github.repository }} | |
- name: Commit and push changes | |
run: | | |
[[ -z $(git status --short) ]] && \ | |
echo 'No change in changelogs' && \ | |
exit | |
git config --local user.name 'Automation' | |
git config --local user.email '[email protected]' | |
git add . | |
git commit --message 'Update changelogs' | |
git push |