Skip to content

Commit aab24b0

Browse files
authored
Updated release workflow (#1060)
## What changes are proposed in this pull request? Updated the Release workflow. - Now it creates an actual release instead of draft - It also automatically pulls the Next changelog info from the tag and uses them in the Release notes. Deleted some unused workflows: - release-test.yml - run once in feb, 2025 ## How is this tested? N/A NO_CHANGELOG=true
1 parent 1afb909 commit aab24b0

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,20 @@ jobs:
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434

35+
- name: Write release notes to file
36+
run: |
37+
RELEASE_NOTES_DIR=/tmp/release-notes
38+
mkdir -p "$RELEASE_NOTES_DIR"
39+
RELEASE_NOTES_FILE="$RELEASE_NOTES_DIR/release-notes.md"
40+
git for-each-ref --format='%(contents)' ${{ github.ref }} > "$RELEASE_NOTES_FILE"
41+
echo "Release notes file: $RELEASE_NOTES_FILE"
42+
echo "Release notes contents:"
43+
cat "$RELEASE_NOTES_FILE"
44+
3545
- name: Release
3646
uses: softprops/action-gh-release@v1
3747
with:
38-
draft: true
48+
body_path: /tmp/release-notes/release-notes.md
3949
files: |
4050
dist/databricks_*.whl
4151
dist/databricks_*.tar.gz

0 commit comments

Comments
 (0)