From 990fb332eb65deed085698cc64809090b180c3e1 Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Wed, 11 Oct 2023 10:27:13 +0200 Subject: [PATCH] try with configuring git --- .github/workflows/update.yml | 8 ++++++-- packages.cr | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 2080109..b60f759 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -41,16 +41,20 @@ jobs: min-free = 1073741824 max-free = 2147483648 secret-key-files = /home/runner/work/capkgs/capkgs/hydra_key - - run: echo "${{secrets.NIX_SIGNING_KEY}}" > hydra_key - run: | + echo "${{secrets.NIX_SIGNING_KEY}}" > hydra_key + git config user.name github-actions + git config user.email github-actions@github.com nix develop \ --ignore-environment \ --keep AWS_ACCESS_KEY_ID \ --keep AWS_SECRET_ACCESS_KEY \ --keep S3_ENDPOINT \ + --keep LOG_LEVEL \ --command just ci env: AWS_ACCESS_KEY_ID: "${{secrets.AWS_ACCESS_KEY_ID}}" AWS_SECRET_ACCESS_KEY: "${{secrets.AWS_SECRET_ACCESS_KEY}}" S3_ENDPOINT: "${{secrets.S3_ENDPOINT}}" - NIX_SIGNING_KEY_FILE: "/home/runner/work/capkgs/capkgs/hydra_key" \ No newline at end of file + NIX_SIGNING_KEY_FILE: "/home/runner/work/capkgs/capkgs/hydra_key" + LOG_LEVEL: "debug" \ No newline at end of file diff --git a/packages.cr b/packages.cr index 6b08be9..3e97a66 100755 --- a/packages.cr +++ b/packages.cr @@ -404,8 +404,10 @@ class CAPkgs def process(path, expect_json, command : String, *args) result = if File.file?(path) + Log.debug { "File exists: #{path}" } Result.from_json(File.read(path)) else + Log.debug { "File create: #{path}" } sh(command, *args).tap { |r| File.write(path, r.to_pretty_json) }