Skip to content

Instantly share code, notes, and snippets.

@yashi
Created December 20, 2021 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashi/69f44b16fd00825a717724174b6e1a64 to your computer and use it in GitHub Desktop.
Save yashi/69f44b16fd00825a717724174b6e1a64 to your computer and use it in GitHub Desktop.
Emulate hashFiles() with sha256sum
To emulate `hashFiles()` in GitHub Actions with `sha256sum`, you can do
```shell
sha256sum file | cut -f1 -d ' ' | xxd -r -p | sha256sum
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment