Skip to content

Commit 00a4ded

Browse files
authored
Merge pull request #480 from soham30rane/master
Automate the generation changelogs in text format
2 parents 1cb845e + 9c268bc commit 00a4ded

File tree

5 files changed

+1000
-76
lines changed

5 files changed

+1000
-76
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Generate Changelog
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
description: 'Release tag of latest release'
8+
required: true
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
process-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install Dependencies
21+
run: pip install -r requirements.txt
22+
23+
- name: Run Script
24+
env:
25+
RELEASE_TAG: ${{ inputs.release_tag }}
26+
GITHUB_PAT: ${{ secrets.SAGE_ACCESS_TOKEN }}
27+
run: python scripts/create_changelog.py "$RELEASE_TAG"
28+
29+
- name: Commit and Push Changes
30+
env:
31+
RELEASE_TAG: ${{ inputs.release_tag }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
git config --global user.name "github-actions[bot]"
35+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
36+
git add "src/changelogs/sage-${RELEASE_TAG}.txt"
37+
git add conf/contributors.xml
38+
git commit -m "Added changelog for release ${{ inputs.release_tag }}"
39+
git push

0 commit comments

Comments
 (0)