Skip to content

Commit

Permalink
github action automatic changelog updated added (abap-observability-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKonings authored Feb 16, 2021
1 parent 87b285b commit 8aa6953
Show file tree
Hide file tree
Showing 3 changed files with 4,272 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "update changelog"
on:
release:
types: [published]

jobs:
update-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Update changelog
run: |
npm install github-release-notes
export GREN_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
npm run overrideChangelog
- name: push changelog.md
run: |
echo ${GITHUB_REF#refs/tags/}
git fetch
git status
git diff CHANGELOG.md
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git switch main
git add CHANGELOG.md
git commit -m "CHANGELOG.md updated"
git push
working-directory: ./
Loading

0 comments on commit 8aa6953

Please sign in to comment.