Skip to content

Commit 8698cf9

Browse files
Add artifact upload step to license check workflow
Added artifact upload step with configurable options.
1 parent 4e7949e commit 8698cf9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/license-check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,34 @@ jobs:
1919
go-version-file: "go.mod"
2020
- name: check licenses
2121
run: ./script/licenses-check
22+
- name: Upload a Build Artifact
23+
uses: actions/upload-artifact@v7.0.0
24+
with:
25+
# Artifact name. If the `archive` input is `false`, the name of the file uploaded will be the artifact name.
26+
name: # optional, default is artifact
27+
# A file, directory or wildcard pattern that describes what to upload.
28+
path:
29+
# The desired behavior if no files are found using the provided path.
30+
Available Options:
31+
warn: Output a warning but do not fail the action
32+
error: Fail the action with an error message
33+
ignore: Do not output any warnings or errors, the action does not fail
34+
35+
if-no-files-found: # optional, default is warn
36+
# Duration after which artifact will expire in days. 0 means using default retention.
37+
Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
38+
39+
retention-days: # optional
40+
# The level of compression for Zlib to be applied to the artifact archive. The value can range from 0 to 9: - 0: No compression - 1: Best speed - 6: Default compression (same as GNU Gzip) - 9: Best compression Higher levels will result in better compression, but will take longer to complete. For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
41+
42+
compression-level: # optional, default is 6
43+
# If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist.
44+
45+
overwrite: # optional, default is false
46+
# If true, hidden files will be included in the artifact. If false, hidden files will be excluded from the artifact.
47+
48+
include-hidden-files: # optional, default is false
49+
# If true, the artifact will be archived (zipped) before uploading. If false, the artifact will be uploaded as-is without archiving. When `archive` is `false`, only a single file can be uploaded. The name of the file will be used as the artifact name (ignoring the `name` parameter).
50+
51+
archive: # optional, default is true
52+

0 commit comments

Comments
 (0)