Add gradleOptions input for the ci-snapshot.yml

This commit is contained in:
Artem Bilan
2024-10-08 10:38:37 -04:00
parent 899786ea58
commit 7df1261cde

View File

@@ -2,6 +2,11 @@ name: CI SNAPSHOT
on:
workflow_dispatch:
inputs:
gradleOptions:
description: 'The Gradle CLI options: tasks, properties etc.'
required: false
type: string
push:
branches:
@@ -19,7 +24,7 @@ jobs:
build-snapshot:
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
with:
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks --refresh-dependencies' || inputs.gradleOptions }}
secrets:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}