-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FR] Update the release versioning process and workflow (#4257)
(cherry picked from commit c615df6)
- Loading branch information
1 parent
234b135
commit b90a5d9
Showing
3 changed files
with
20 additions
and
5 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 |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
fi | ||
fi | ||
release_drafter: | ||
tag_and_draft_release: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
permissions: | ||
|
@@ -73,6 +73,19 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set github config | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "protectionsmachine" | ||
- name: Extract version from pyproject.toml and create tag | ||
id: extract_version | ||
run: | | ||
version=$(grep '^version = ' pyproject.toml | cut -d '"' -f2) | ||
echo "Detected version: $version" | ||
git tag -a "dev-v$version" -m "Release version $version" | ||
git push origin "v$version" | ||
- name: Run Release Drafter | ||
uses: release-drafter/release-drafter@v6 | ||
with: | ||
|
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
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