Skip to content

Commit 7df1261

Browse files
committed
Add gradleOptions input for the ci-snapshot.yml
1 parent 899786e commit 7df1261

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci-snapshot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: CI SNAPSHOT
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
gradleOptions:
7+
description: 'The Gradle CLI options: tasks, properties etc.'
8+
required: false
9+
type: string
510

611
push:
712
branches:
@@ -19,7 +24,7 @@ jobs:
1924
build-snapshot:
2025
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
2126
with:
22-
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
27+
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks --refresh-dependencies' || inputs.gradleOptions }}
2328
secrets:
2429
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2530
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}

0 commit comments

Comments
 (0)