1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-03-13 20:29:17 +00:00

Merge pull request #364 from Mic92/dependabot-automation

drop git commit from update-vendor-hash.sh
This commit is contained in:
Jörg Thalheim 2023-07-15 08:02:41 +01:00 committed by GitHub
commit d4e006f528
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,11 +7,3 @@ failedbuild=$(nix build --impure --expr '(with import <nixpkgs> {}; pkgs.callPac
echo "$failedbuild"
checksum=$(echo "$failedbuild" | awk '/got:.*sha256/ { print $2 }')
sed -i -e "s|vendorHash ? \".*\"|vendorHash ? \"$checksum\"|" default.nix
# git push if we have a diff
if [[ -n $(git diff) ]]; then
git add default.nix
git commit -m "sops-install-secrets: update checksum to $checksum"
git push
fi