mirror of
https://gitea.com/actions/upload-artifact.git
synced 2024-11-15 05:05:58 +01:00
fix: update actions.yml
This commit is contained in:
parent
35e561c49c
commit
7f0c9eaa6d
1 changed files with 27 additions and 2 deletions
29
action.yml
29
action.yml
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue