mirror of
https://gitea.com/actions/go-hashfiles.git
synced 2024-12-04 22:09:31 +01:00
update readme
This commit is contained in:
parent
74a259b75c
commit
3a787cd412
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
This action is to compute the SHA256 hash of specified files.
|
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.
|
**NOTE:** This action is written in Go. Please setup the Go environment before running this action or make sure the `runs-on` runner supports running Go actions.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@ This action is to compute the SHA256 hash of specified files.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
``` yml
|
``` yml
|
||||||
|
# Setup the Go environment. This step can be skipped if Go has been installed.
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
- uses: actions/go-hashfiles@v0.0.1
|
- uses: actions/go-hashfiles@v0.0.1
|
||||||
id: get-hash
|
id: get-hash
|
||||||
with:
|
with:
|
||||||
|
@ -34,6 +39,7 @@ This action is to compute the SHA256 hash of specified files.
|
||||||
go.sum
|
go.sum
|
||||||
./admin/*
|
./admin/*
|
||||||
**/package-lock.json
|
**/package-lock.json
|
||||||
|
|
||||||
- name: Echo hash
|
- name: Echo hash
|
||||||
run: echo ${{ steps.get-hash.outputs.hash }}
|
run: echo ${{ steps.get-hash.outputs.hash }}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue