go-hashfiles/action.yml

22 lines
598 B
YAML
Raw Permalink Normal View History

2023-03-17 16:08:21 +07:00
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'