Skip to content

Bump org.junit.jupiter:junit-jupiter from 5.9.3 to 5.10.0 (#341) #144

Bump org.junit.jupiter:junit-jupiter from 5.9.3 to 5.10.0 (#341)

Bump org.junit.jupiter:junit-jupiter from 5.9.3 to 5.10.0 (#341) #144

# CHANGELOG.md is generated by https://github.com/github-changelog-generator/github-changelog-generator
# It pushes the generated changelog automatically
name: Update Changelog
on:
push:
branches:
- main
workflow_dispatch:
# issues:
# types: [closed, labeled, unlabeled]
# pull_request:
# types: [closed, labeled, unlabeled]
jobs:
update-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run github_changelog_generator
shell: bash
run: |
bundle exec github_changelog_generator
env:
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compare the expected and actual CHANGELOG.md
run: |
if [ "$(git diff CHANGELOG.md | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
echo "changelog=outdated" >> $GITHUB_ENV
else
echo "changelog=current" >> $GITHUB_ENV
fi
id: diff
- name: Push changes to CHANGELOG.md
if: ${{ github.repository == 'liquibase/liquibase-percona' && env.changelog == 'outdated' }}
run: |
git config --local user.name "liquibot"
git config --local user.email "liquibot@liquibase.org"
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && git push origin main