mirror of
https://gitea.com/actions/go-hashfiles.git
synced 2025-07-18 05:08:27 +02:00
add files
This commit is contained in:
parent
c2d35db256
commit
74a259b75c
5 changed files with 307 additions and 0 deletions
37
README.md
37
README.md
|
@ -1,2 +1,39 @@
|
|||
# go-hashfiles
|
||||
|
||||
This action is to compute the SHA256 hash of specified files.
|
||||
|
||||
**NOTE:** This action is written in Go. Please make sure the `runs-on` runner supports running Go actions.
|
||||
|
||||
## Usage
|
||||
|
||||
``` yml
|
||||
- uses: actions/go-hashfiles@v0.0.1
|
||||
with:
|
||||
# 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
|
||||
``` yml
|
||||
- uses: actions/go-hashfiles@v0.0.1
|
||||
id: get-hash
|
||||
with:
|
||||
patterns: |-
|
||||
go.sum
|
||||
./admin/*
|
||||
**/package-lock.json
|
||||
- name: Echo hash
|
||||
run: echo ${{ steps.get-hash.outputs.hash }}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue