Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
414b9f8
Added Automation for generating changelogs
soham30rane Nov 23, 2024
4243d86
Update generate_changelog.yml, updated name of secret variable
soham30rane Nov 23, 2024
cabf502
Updated create_changelog.py: Removed trailing slash for (http://www.s…
soham30rane Nov 24, 2024
f96158d
Updated create_changelog.py: now '[First Contribution]' aligns with o…
soham30rane Nov 24, 2024
38ccbd3
Added changelog for release: 10.0
github-actions[bot] Nov 24, 2024
e356fb9
Delete src/changelogs/sage-10.0.txt
soham30rane Nov 28, 2024
331fd39
Fixed typo in create_changelog.py
soham30rane Nov 28, 2024
e5054df
Now only fetching 100 most recent tags instead of 1000
soham30rane Nov 28, 2024
8b8fa92
Now generated changelogs don't have an empty line at the end
soham30rane Nov 28, 2024
dad5da3
Retrieve contributor's name from github and update conf/contributors.…
soham30rane Nov 28, 2024
0bb9407
Removed unnecessary secret 'CHANGELOG_TRIGGER_SECRET'
soham30rane Nov 28, 2024
790b6de
Used specific filenames, when pushing changes from the workflow
soham30rane Nov 28, 2024
b78b43b
Workflow should terminate when changelog is not generated
soham30rane Nov 28, 2024
2c64e64
Fixed misplaced 'url' attribute in conf/contributors.xml
soham30rane Nov 28, 2024
ce3556c
Added changelog for release: 10.0
github-actions[bot] Nov 28, 2024
a57f4da
Fixed a few typos in create_changelog.py
soham30rane Nov 29, 2024
aa9b05c
Removed unnecessary print statement in create_changelog.py
soham30rane Nov 29, 2024
286ce08
Fixed 'date_of_release' logic in create_changelog.py
soham30rane Nov 29, 2024
8679ac7
Added docstrings to functions in create_changelog.py
soham30rane Nov 29, 2024
387a6ce
Changed name 'PERSONAL_ACCESS_TOKEN' to 'SAGE_ACCESS_TOKEN' in genera…
soham30rane Nov 29, 2024
4916927
Removed colon from auto-generated commit message in generate_changelo…
soham30rane Nov 29, 2024
519e571
Improved formatting for changelog generation
soham30rane Nov 29, 2024
9c268bc
Hardcoded release manager in changelog generation
soham30rane Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/generate_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate Changelog

on:
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag of latest release'
required: true

permissions:
contents: write

jobs:
process-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Dependencies
run: pip install -r requirements.txt

- name: Run Script
env:
RELEASE_TAG: ${{ inputs.release_tag }}
GITHUB_PAT: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: python scripts/create_changelog.py "$RELEASE_TAG"

- name: Commit and Push Changes
env:
RELEASE_TAG: ${{ inputs.release_tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add "src/changelogs/sage-${RELEASE_TAG}.txt"
git add conf/contributors.xml
git commit -m "Added changelog for release: ${{ inputs.release_tag }}"
git push
Loading