nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.55k stars 77 forks source link

Fix GitHub action to publish to cachix #305

Closed knl closed 3 years ago

knl commented 3 years ago

GitHub has deprecated setting the environment variables and paths via echoing to the stdout:

https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Thus, this PR brings the code up to data with the recommendations in the linked post. In short, paths are exposed to subsequent steps by appending to the file named in $GITHUB_PATH, while environment variables are set by appending name=value to the file named in $GITHUB_ENV.