Skip to content

Commit ea50a26

Browse files
committed
♿ improve release and message
1 parent 0fca548 commit ea50a26

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11+
with:
12+
ref: master
13+
token: ${{ secrets.GH_TOKEN }}
1114

1215
- uses: actions/setup-python@v2
1316
with:

auto_changelog/__main__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ class Settings(BaseSettings):
6868
logging.info(f"Committing changes to: {settings.input_changelog_file}")
6969

7070
subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
71-
subprocess.run(["git", "config", "user.email", "[email protected]"], check=True)
71+
subprocess.run(
72+
["git", "config", "user.email", "[email protected]"],
73+
check=True,
74+
)
7275
subprocess.run(["git", "add", str(settings.input_changelog_file)], check=True)
73-
subprocess.run(["git", "commit", "-m", ":memo: Update release notes"], check=True)
76+
subprocess.run(["git", "commit", "-m", ":memo: Update changelog"], check=True)
7477
logging.info(f"Pushing changes: {settings.input_changelog_file}")
7578
subprocess.run(["git", "push"], check=True)
7679
logging.info("Finished")

0 commit comments

Comments
 (0)