diff --git a/.github/workflows/createchangelog.yaml b/.github/workflows/createchangelog.yaml index 111bb5b680..e030286dc4 100644 --- a/.github/workflows/createchangelog.yaml +++ b/.github/workflows/createchangelog.yaml @@ -116,4 +116,9 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add docs/changelog.md git commit -m "Update changelog.md with all releases" - git push + echo "Event name: ${{ github.event_name }}" + if ['${{ github.event_name }}' = 'release']; then + git push --force + else + git push + fi