mirror of
https://github.com/seepine/hash-files.git
synced 2025-07-28 19:13:13 +08:00
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: 'hash-files'
|
|
description: 'Compute the SHA256 hash of specified files'
|
|
branding:
|
|
icon: file
|
|
color: blue
|
|
|
|
author: 'seepine'
|
|
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
|
|
gitignore:
|
|
description: >
|
|
Respect ignore patterns in .gitignore files that apply to the globbed files.
|
|
default: 'true'
|
|
required: false
|
|
ignoreFiles:
|
|
description: >
|
|
Glob patterns to look for ignore files, which are then used to ignore globbed files.
|
|
This is a more generic form of the gitignore option, allowing you to find ignore files with a compatible syntax.
|
|
For instance, this works with Babel's .babelignore, Prettier's .prettierignore, or ESLint's .eslintignore files.
|
|
required: false
|
|
outputs:
|
|
hash:
|
|
description: 'The computed hash result'
|
|
matched-files:
|
|
description: 'The files matched by the patterns'
|
|
runs:
|
|
using: 'node20'
|
|
main: 'dist/index.js'
|