Go to file
Zettat123 5d6228f747 update readme 2023-03-17 15:46:12 +08:00
action.yml update action.yml 2023-03-17 15:38:53 +08:00
go.mod init 2023-03-13 11:50:41 +08:00
go.sum init 2023-03-13 11:50:41 +08:00
main.go add log 2023-03-17 12:26:31 +08:00
README.md update readme 2023-03-17 15:46:12 +08:00

go-hashfiles

This action is to compute the SHA256 checksum of specified files.

NOTE: This action is written in Go. Please make sure the runs-on runner supports running Go actions.

Usage

- 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 with `\n`
    patterns: ''

Output

Output Item Description
hash The computed checksum
matched-files The files matched by the patterns

Example

- 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 }}