CI: build.sh: add report of Nixpkgs channel revision

Since Nix and Nixpkgs channel were just updated and build is next - report the
revision.

M  build.sh
This commit is contained in:
Anton-Latukha 2020-06-24 03:56:08 +03:00
parent 2bd98c2d92
commit ba73fa26d8
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,9 @@ MAIN() {
(nix-channel --update && nix-env -iA nixpkgs.nix) || (sudo nix upgrade-nix)
# Report the Nixpkgs channel revision
nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.version or lib.nixpkgsVersion'
# Secrets are not shared to PRs from forks
# nix-build | cachix push <project> - uploads binaries, runs&works only in the branches of the main repository, so for PRs - else case runs