Skip to content

Commit

Permalink
♿ improve release and message
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu committed Feb 15, 2022
1 parent 0fca548 commit ea50a26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
token: ${{ secrets.GH_TOKEN }}

- uses: actions/setup-python@v2
with:
Expand Down
7 changes: 5 additions & 2 deletions auto_changelog/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ class Settings(BaseSettings):
logging.info(f"Committing changes to: {settings.input_changelog_file}")

subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
subprocess.run(["git", "config", "user.email", "github-actions@github.com"], check=True)
subprocess.run(
["git", "config", "user.email", "github-actions@users.noreply.github.com"],
check=True,
)
subprocess.run(["git", "add", str(settings.input_changelog_file)], check=True)
subprocess.run(["git", "commit", "-m", ":memo: Update release notes"], check=True)
subprocess.run(["git", "commit", "-m", ":memo: Update changelog"], check=True)
logging.info(f"Pushing changes: {settings.input_changelog_file}")
subprocess.run(["git", "push"], check=True)
logging.info("Finished")

0 comments on commit ea50a26

Please sign in to comment.