1
0
Fork 0
mirror of https://code.forgejo.org/actions/upload-artifact synced 2025-06-11 05:42:25 +02:00

Exclude the .git directory by default

This commit is contained in:
Josh Gross 2024-08-15 20:29:20 -04:00
parent 834a144ee9
commit 3412bb46a4
No known key found for this signature in database
18 changed files with 434 additions and 113 deletions

View file

@ -10,6 +10,7 @@ export function getInputs(): MergeInputs {
const pattern = core.getInput(Inputs.Pattern, {required: true})
const separateDirectories = core.getBooleanInput(Inputs.SeparateDirectories)
const deleteMerged = core.getBooleanInput(Inputs.DeleteMerged)
const includeGitDirectory = core.getBooleanInput(Inputs.IncludeGitDirectory)
const inputs = {
name,
@ -17,7 +18,8 @@ export function getInputs(): MergeInputs {
separateDirectories,
deleteMerged,
retentionDays: 0,
compressionLevel: 6
compressionLevel: 6,
includeGitDirectory
} as MergeInputs
const retentionDaysStr = core.getInput(Inputs.RetentionDays)