Skip to content

Commit cc6857b

Browse files
authored
Fix: Add new_version to workflow job output (#38)
* Added new version to action outputs * Bump github collector version
1 parent a0a3610 commit cc6857b

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/release-on-merge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
needs: test-core
2828
if: github.event.pull_request.merged == true
2929
runs-on: ubuntu-latest
30+
outputs:
31+
new_version: ${{ steps.versioning.outputs.new_version }}
3032

3133
steps:
3234
- name: Checkout
@@ -85,7 +87,7 @@ jobs:
8587
8688
publish:
8789
needs: tag-release
88-
if: github.event.pull_request.merged == true
90+
if: github.event.pull_request.merged == true && needs.tag-release.outputs.new_version != ''
8991
uses: ./.github/workflows/build-and-publish.yml
9092
with:
9193
tag: ${{ needs.tag-release.outputs.new_version }}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ dependencies = [
2424
[project.optional-dependencies]
2525
all = [
2626
"openhound-jamf==0.2.2",
27-
"openhound-github==0.3.3",
27+
"openhound-github==0.3.4",
2828
"openhound-okta==0.1.4",
2929
]
3030
jamf = [
3131
"openhound-jamf==0.2.2",
3232
]
3333
github = [
34-
"openhound-github==0.3.3"
34+
"openhound-github==0.3.4"
3535
]
3636

3737
okta = [

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)