From 0f388725cea5fb875702e2fef264bc5fdf23b526 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sun, 17 Dec 2023 18:53:04 +0100 Subject: [PATCH] Only update ~/.docker/config.json if it exists Not having this file is probably due to GitHub infra issues but let's not fail the build for that. --- .github/workflows/ci-actions-incremental.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 25bc005e8cda9..b813258819c71 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -860,7 +860,9 @@ jobs: # We do this so we can get better analytics for the downloaded version of the build images - name: Update Docker Client User Agent run: | - cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json + if [ -f ~/.docker/config.json ]; then + cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json + fi - name: Setup Develocity Build Scan capture uses: gradle/github-actions/maven-build-scan-setup@v0.2 with: