-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #480 from soham30rane/master
Automate the generation changelogs in text format
- Loading branch information
Showing
5 changed files
with
1,000 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.SAGE_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 |
Oops, something went wrong.