Skip to content

Commit

Permalink
try with configuring git
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Oct 11, 2023
1 parent aaae47a commit 990fb33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
NIX_SIGNING_KEY_FILE: "/home/runner/work/capkgs/capkgs/hydra_key"
LOG_LEVEL: "debug"
2 changes: 2 additions & 0 deletions packages.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 990fb33

Please sign in to comment.