mirror of
https://github.com/actions/upload-artifact
synced 2024-12-22 22:42:46 +00:00
92b91569e6
This commit implements a new boolean input to the action, `follow-symlinks`. This option configures whether the glob expansion will follow any symlinks it finds when determining the set of of files to be archived into the artifact. The default value of the option, which preserves the existing behaviour, is `true`. When set to true, symbolic links will be be followed and expanded If `false`, symbolic links will be included in the archived artifact verbatim. Users may wish to set this option to false if their artifact contains internally-referencing symlinks which would result in significant bloat (and semantic change!) in the source files when the artifact is created. Resolves: actions#93.
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
name: 'Upload a Build Artifact'
|
|
description: 'Upload a build artifact that can be used by subsequent workflow steps'
|
|
author: 'GitHub'
|
|
inputs:
|
|
name:
|
|
description: 'Artifact name'
|
|
default: 'artifact'
|
|
path:
|
|
description: 'A file, directory or wildcard pattern that describes what to upload'
|
|
required: true
|
|
if-no-files-found:
|
|
description: >
|
|
The desired behavior if no files are found using the provided path.
|
|
|
|
Available Options:
|
|
warn: Output a warning but do not fail the action
|
|
error: Fail the action with an error message
|
|
ignore: Do not output any warnings or errors, the action does not fail
|
|
default: 'warn'
|
|
retention-days:
|
|
description: >
|
|
Duration after which artifact will expire in days. 0 means using default retention.
|
|
|
|
Minimum 1 day.
|
|
Maximum 90 days unless changed from the repository settings page.
|
|
follow-symlinks:
|
|
description: >
|
|
Whether symbolic links should be followed and expanded when building the set of files to be
|
|
archived (true), or if symbolic links should be included in the archived artifact verbatim
|
|
(false).
|
|
default: true
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|