Skip to content

Commit 302b51c

Browse files
authored
Merge pull request #3 from parthosa/spark-rapids-tools-369-pr3
Test change log
2 parents 9772f79 + 3d95034 commit 302b51c

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/release.yml

+21-9
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: Auto Release
33
on:
44
push:
55
tags:
6-
- 'v*' # Change 'main' to your default branch name
6+
- 'v*' # Only trigger on tags starting with 'v'
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest # You can use other runners like macOS or Windows
10+
runs-on: ubuntu-latest
11+
1112

1213
steps:
1314
- name: Checkout code
@@ -18,25 +19,36 @@ jobs:
1819
- name: Set up Python
1920
uses: actions/setup-python@v2
2021
with:
21-
python-version: 3.x # Specify the Python version you need
22+
python-version: 3.x
23+
24+
# Add steps here to build the Python package, generate a wheel, etc.
2225

23-
- name: "Build Changelog"
24-
id: build_changelog
25-
uses: mikepenz/release-changelog-builder-action@v4
26+
- name: Fetch all tags
27+
run: git fetch --tags
2628

2729
- name: Create Release
2830
id: create_release
2931
uses: actions/create-release@v1
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3234
with:
33-
tag_name: ${{ github.ref }} # Specify the version number you want to release
35+
tag_name: ${{ github.ref }}
3436
release_name: Release ${{ github.ref }}
3537
body: |
3638
Add release notes here
37-
You can also include links to the artifacts like mvn jar and pypi package.
38-
${{steps.build_changelog.outputs.changelog}}
39+
${{ steps.changelog.outputs.changelog }}
3940
draft: false
4041
prerelease: false
4142

4243
# Add steps here to upload any additional artifacts (e.g., mvn jar, pypi package, etc.) if required.
44+
45+
- name: Install jq
46+
run: sudo apt-get update && sudo apt-get install -y jq
47+
48+
- name: Generate Changelog
49+
id: changelog
50+
run: |
51+
from_tag="v1.0.5"
52+
to_tag="${{ github.ref }}"
53+
changelog=$(git log --pretty=format:"- %s" $from_tag...$to_tag)
54+
echo "::set-output name=changelog::$changelog"

0 commit comments

Comments
 (0)