Skip to content

Commit

Permalink
script update
Browse files Browse the repository at this point in the history
  • Loading branch information
saadmk11 committed Sep 2, 2020
1 parent 5dd7289 commit b437991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog-ci.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import subprocess

import requests

Expand Down Expand Up @@ -127,3 +128,5 @@ def write_changelog(self):

ci = ChangelogCI(repository, event_path, filename=filename)
ci.write_changelog()

subprocess.call(['bash', './commit.sh'])
4 changes: 1 addition & 3 deletions entrypoint.sh → commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ set -e

git config user.name ${USERNAME}
git config user.email ${EMAIL}
echo "START"
python ./changelog-ci.py
echo "END"

git add .
git commit -m "Added Changelog"
git push origin ${GITHUB_REF}

0 comments on commit b437991

Please sign in to comment.