Skip to content

Commit 4ba5a7e

Browse files
committed
fix: bug fixs for github action generate changelog
1 parent 537a134 commit 4ba5a7e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: .github/workflows/generate-changelog.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
name: Julep-Changelog-Generation
1+
name: Julep Changelog Generation
2+
run-name: ${{ github.actor }} is generating changelog for the last two weeks using Julep
23

34
on:
4-
workflow_dispatch: {}
5+
workflow_dispatch:
56

67
jobs:
78
changelog_generation:
@@ -43,7 +44,7 @@ jobs:
4344
fi
4445
4546
echo "pr_data=$merged_prs" >> $GITHUB_ENV
46-
echo "{\"pr_data\": $merged_prs}" > pr_data.json
47+
echo "$merged_prs" > pr_data.json
4748
4849
- name: Setup Python v3.10.12
4950
uses: actions/setup-python@v5

Diff for: scripts/generate_changelog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def main(pr_data: str) -> None:
182182
try:
183183
# Read PR data from JSON file
184184
with open('pr_data.json', 'r') as file:
185-
pr_data = json.load(file)
185+
pr_data = file.read()
186186
main(pr_data)
187187
except Exception as e:
188188
logging.error(f"Script failed: {str(e)}")

0 commit comments

Comments
 (0)