Skip to content

Commit 84c351b

Browse files
authored
update
1 parent 1a1437e commit 84c351b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/pipeline.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
detect-runner:
11+
runs-on: [self-hosted, Linux, X64]
12+
outputs:
13+
is_self_hosted: ${{ steps.set_output.outputs.self_hosted }}
14+
steps:
15+
- id: set_output
16+
run: echo "self_hosted=true" >> $GITHUB_OUTPUT
17+
1018
bump:
19+
needs: detect-runner
1120
uses: UnterrainerInformatik/bump-semver-workflow/.github/workflows/workflow.yml@master
21+
with:
22+
self_hosted: ${{ needs.detect-runner.outputs.is_self_hosted }}
23+
1224
build:
1325
name: Build and publish to Maven Central 🚀
14-
needs: bump
26+
needs: [bump, detect-runner]
1527
uses: UnterrainerInformatik/maven-central-workflow/.github/workflows/workflow.yml@master
1628
with:
29+
self_hosted: ${{ needs.detect-runner.outputs.is_self_hosted }}
1730
major_version: ${{ needs.bump.outputs.major_version }}
1831
minor_version: ${{ needs.bump.outputs.minor_version }}
1932
build_version: ${{ needs.bump.outputs.build_version }}

0 commit comments

Comments
 (0)