File tree Expand file tree Collapse file tree 5 files changed +1000
-76
lines changed Expand file tree Collapse file tree 5 files changed +1000
-76
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments