From 54eec61a7839e5f65298d52cb6ff9192bc0be7c7 Mon Sep 17 00:00:00 2001 From: Kirill Artamonov Date: Tue, 21 Jan 2025 20:16:33 +0100 Subject: [PATCH] Verify Gradle wrapper files were generated --- .github/workflows/gradle-build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 0fdb294b..02d63852 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -7,6 +7,14 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: gradle/actions/wrapper-validation@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 + - uses: eskatos/gradle-command-action@ac2d340dc04d9e1113182899e983b5400c17cda1 + with: + arguments: wrapper + - run: > + if [[ -n $(git status --porcelain) ]]; then + echo "Please run Gradle wrapper task and commit wrapper changes." + exit 1 + fi gradle: name: "Build" strategy: