Skip to content

Commit

Permalink
Add workflow_dispatch in get-version
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Feb 17, 2025
1 parent d10e2b9 commit 0de31c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/get-version
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2018-2024, Camptocamp SA
# Copyright (c) 2018-2025, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -63,6 +63,7 @@ elif args.auto_increment:
elif os.environ.get("MAIN_BRANCH", "master") != "master" and (
os.environ.get("GITHUB_REF", "") == "refs/heads/" + os.environ.get("MAIN_BRANCH", "master")
or os.environ.get("GITHUB_EVENT_NAME", "") == "repository_dispatch"
or os.environ.get("GITHUB_EVENT_NAME", "") == "workflow_dispatch"
):
ci["minor"] = ci["minor"] + 1

Expand Down

0 comments on commit 0de31c3

Please sign in to comment.