diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 310fc9e..5b99e2f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/auto_changelog/__main__.py b/auto_changelog/__main__.py index c06f82b..782cd6f 100644 --- a/auto_changelog/__main__.py +++ b/auto_changelog/__main__.py @@ -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")