Merge branch 'production' into pre-production #146
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 index generator | |
# Trigger the workflow on milestone events | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- pre-production | |
- production | |
paths: | |
- ".github/resources/changelog-index-generator.py" | |
- "changelog-versions/**" | |
jobs: | |
changelog-index: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.NOVUM_PRIVATE_REPOS }} | |
- name: Get branch name | |
uses: rlespinasse/[email protected] | |
- run: | | |
sudo pip3 install GitPython | |
sudo python3 .github/resources/changelog-index-generator.py changelog-versions | |
cat CHANGELOG.md | |
- name: Commit & Push in ${{ env.GITHUB_REF_SLUG_URL }} | |
run: | | |
git add . | |
git config user.name "github-actions" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git commit -am "update changelog" | |
git push origin ${{ env.GITHUB_REF_SLUG_URL }} |