From f36a094733f0981a71ca49885bbbbfba06ed6332 Mon Sep 17 00:00:00 2001 From: xsalefter Date: Wed, 7 Oct 2026 06:35:37 +0700 Subject: [PATCH] implements `purge-cache` input --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69eb5e8..2ee988e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,14 +2,22 @@ name: ci on: push: + branches: [ master ] pull_request: workflow_dispatch: + inputs: + purge-cache: + description: 'Purge Maven dependency cache before build' + required: false + type: boolean + default: false jobs: ci: uses: killbill/gh-actions-shared/.github/workflows/ci.yml@main with: - failure-upload-path: 'target/*' + failure-upload-path: 'target/*' + purge-cache: ${{ inputs.purge-cache || false }} secrets: CLOUDSMITH_CENTRAL_PASSWORD: ${{ secrets.CLOUDSMITH_CENTRAL_PASSWORD }} CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD: ${{ secrets.CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD }}