Skip to content

Commit

Permalink
GitHub: Build: ignore existing ~/.gradle
Browse files Browse the repository at this point in the history
As part of workflow "Build", step "Disable Gradle Welcome" creates the
directory "~/.gradle".  Apparently, it's possible to have directory
~/.gradle/ to already exist on the runner where workflow is being run:

    mkdir: cannot create directory ‘/home/runner/.gradle’: File exists
    Error: Process completed with exit code 1.

This issue has existed since this step was introduced in commit 8afbba2
(GitHub: Build: disable welcome message from Gradle, 2023-07-06).  Add
flag `-p` to the invocation of `mkdir` to not produce an error if the
directory already exists.
  • Loading branch information
rybak committed Aug 14, 2023
1 parent 0f86466 commit 47a64c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Disable Gradle Welcome
run: |
mkdir ~/.gradle
mkdir -p ~/.gradle
echo "org.gradle.welcome=never" >>~/.gradle/gradle.properties
# Validate wrapper
Expand Down

0 comments on commit 47a64c7

Please sign in to comment.