Skip to content

Commit 63637e9

Browse files
committed
use dynamic guicey version for examples CI
1 parent f0730cf commit 63637e9

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,6 @@ jobs:
7171
examples:
7272
if: ${{ github.ref == 'refs/heads/dw-3' && github.event_name != 'pull_request' && endsWith(needs.build.outputs.version, '-SNAPSHOT') }}
7373
needs: [build, publish]
74-
uses: ./.github/workflows/examples-CI.yml
74+
uses: ./.github/workflows/examples-CI.yml
75+
with:
76+
version: ${{ needs.build.outputs.version }}

.github/workflows/examples-CI.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Examples CI
22

33
on:
44
workflow_call:
5+
inputs:
6+
version:
7+
required: false
8+
type: string
59

610
jobs:
711
build:
@@ -27,6 +31,8 @@ jobs:
2731
uses: gradle/actions/setup-gradle@v3
2832

2933
- name: Build and Check
34+
env:
35+
ORG_GRADLE_PROJECT_guiceyBom: ${{ inputs.version }}
3036
run: |
3137
chmod +x gradlew
3238
./gradlew build --no-daemon

examples/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ wrapper {
1111
description = 'Dropwizard guicey examples'
1212

1313
ext {
14-
guiceyBom = '6.3.2-SNAPSHOT'
14+
guiceyBom = guiceyBom ?: '6.3.2'
1515
dwVersion = '3.0.14'
1616
}
1717

0 commit comments

Comments
 (0)