fix: update actions.yml

This commit is contained in:
initdc 2022-10-15 13:44:59 +00:00
parent 35e561c49c
commit 7f0c9eaa6d

View File

@ -3,8 +3,8 @@ description: 'Upload a build artifact that can be used by subsequent workflow st
author: 'GitHub' author: 'GitHub'
inputs: inputs:
name: name:
description: 'Artifact name' description: 'Artifacts name'
default: 'artifact' default: 'artifacts'
path: path:
description: 'A file, directory or wildcard pattern that describes what to upload' description: 'A file, directory or wildcard pattern that describes what to upload'
required: true required: true
@ -23,6 +23,31 @@ inputs:
Minimum 1 day. Minimum 1 day.
Maximum 90 days unless changed from the repository settings page. Maximum 90 days unless changed from the repository settings page.
artifact-per-file:
description: enable otption for uploading one artifact per file
default: "false"
artifact-name-rule:
description: >
https://nodejs.org/docs/latest-v16.x/api/path.html#pathparsepath
path.parse('/home/user/dir/file.txt');
// Returns:
// { root: '/',
// dir: '/home/user/dir',
// base: 'file.txt',
// ext: '.txt',
// name: 'file' }
┌─────────────────────┬────────────┐
│ dir │ base │
├──────┬ ├──────┬─────┤
│ root │ │ name │ ext │
" / home/user/dir / file .txt "
└──────┴──────────────┴──────┴─────┘
(All spaces in the "" line should be ignored. They are purely for formatting.)
Every key need in wrapper: ${}
default: ${base}
runs: runs:
using: 'node16' using: 'node16'
main: 'dist/index.js' main: 'dist/index.js'