go-hashfiles/action.yml

22 lines
598 B
YAML

name: 'Go HashFiles'
description: 'Compute the SHA256 hash of specified files'
inputs:
workdir:
description: >
The working directory for the action.
default: ${{ github.workspace }}
required: false
patterns:
description: >
The patterns used to match files. You can input multiple patterns seperated by `\n`.
We recommand using `|-` to concat the patterns in `.yml` files.
required: true
outputs:
hash:
description: 'The computed hash result'
matched-files:
description: 'The files matched by the patterns'
runs:
using: 'go'
main: 'main.go'