NOTE: This action is written in Go. Please setup the Go environment before running this action or use a runner with Go environment installed.
Usage
- uses:actions/go-hashfiles@v0.0.1with:# The working dir for the action.# Default: ${{ github.workspace }}workdir:''# The patterns used to match files.# Multiple patterns should be seperated by `\n`patterns:''
Output
Output Item
Description
hash
The computed hash result
matched-files
The files matched by the patterns
Example
# Setup the Go environment. This step can be skipped if Go has been installed.- uses:actions/setup-go@v3with:go-version:'1.20'- uses:actions/go-hashfiles@v0.0.1id:get-hashwith:patterns:|- go.sum
./admin/*
**/package-lock.json- name:Echo hashrun:echo ${{ steps.get-hash.outputs.hash }}