-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Morris
committed
Jul 1, 2024
1 parent
e2fb00c
commit 2427360
Showing
5 changed files
with
55 additions
and
68 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 |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
git config --global user.name 'aicsgithub' | ||
git config --global user.email '[email protected]' | ||
python scripts/publish_bumpver_handler.py ${{ inputs.semver_component }} | ||
# takes the commit from the last step, pushes to new branch, release, and creates PR | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v6 | ||
|
@@ -54,11 +54,9 @@ jobs: | |
base: main | ||
title: Bump version and publish | ||
body: See commit message or diff for new version number | ||
|
||
- name: Tag version | ||
run: | | ||
git checkout workflow-release | ||
python scripts/tag_with_current_version.py | ||
git push origin --tags | ||
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
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# This file is intended to be called by a github workflow | ||
import subprocess | ||
|
||
import toml | ||
|
||
|
||
def main(): | ||
version: str = toml.load("pyproject.toml")["project"]["version"] | ||
tag_output: subprocess.CompletedProcess = subprocess.run( | ||
["git", "tag", f"v{version}"] | ||
) | ||
tag_output: subprocess.CompletedProcess = subprocess.run(["git", "tag", f"v{version}"]) | ||
if tag_output.returncode != 0: | ||
raise RuntimeError("failed to tag") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
main() |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -----DO NOT MODIFY THIS FILE----- | ||
# This file should only be modified by bumpver, which should in turn only be ran | ||
# via a GH Action | ||
version = "0.1.7" | ||
version = "0.1.7" |