Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
d1d2d7e3
Commit
d1d2d7e3
authored
Feb 06, 2025
by
J Wyman
Committed by
GitHub
Feb 06, 2025
Browse files
ci: move file to .github/workflows folder (#125)
parent
cdcdce96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
.github/workflows/common.ps1
.github/workflows/common.ps1
+0
-0
.github/workflows/copyright-check.ps1
.github/workflows/copyright-check.ps1
+8
-3
No files found.
deploy/Kubernetes/_build
/common.ps1
→
.github/workflows
/common.ps1
View file @
d1d2d7e3
File moved
.github/workflows/copyright-check.ps1
View file @
d1d2d7e3
...
@@ -15,13 +15,15 @@
...
@@ -15,13 +15,15 @@
set-strictmode
-version
latest
set-strictmode
-version
latest
.
"
$(
&
git
rev-parse
--show-toplevel
)
/
deploy/Kubernetes/_build
/common.ps1
"
.
"
$(
&
git
rev-parse
--show-toplevel
)
/
.github/workflows
/common.ps1
"
# == begin common.ps1 extensions ==
# == begin common.ps1 extensions ==
$date_key
= '%%DATE%%'
$date_key
= '%%DATE%%'
$date_regex
= '(?>(?>\d{4})-)?(?<year>\d{4})'
$date_regex
= '(?>(?>\d{4})-)?(?<year>\d{4})'
$timer
= [System.Diagnostics.Stopwatch]::StartNew()
$
global
:
copyright_matchers
= @(
$
global
:
copyright_matchers
= @(
@{
@{
files = @('.containerfile', '.dockerignore', '.pbtxt', '.ps1', '.py', '.sh', '.toml', '.tpl', '.txt', '.yaml', '.yml', 'Dockerfile')
files = @('.containerfile', '.dockerignore', '.pbtxt', '.ps1', '.py', '.sh', '.toml', '.tpl', '.txt', '.yaml', '.yml', 'Dockerfile')
...
@@ -357,8 +359,10 @@ function generate_report() {
...
@@ -357,8 +359,10 @@ function generate_report() {
write-minimal ''
write-minimal ''
write-minimal "
Copyright
check
report
-
>
${output_path}
"
write-minimal "
Copyright
check
report
-
>
${output_path}
"
}
}
write-normal ''
write-normal ''
$timer
.Stop()
write-high "
Pass:
$
(
$
global
:
copyright_results
.
passed
.
count
)
, Fail:
$(
$
global
:
copyright_results
.
failed_date
.
count
+
$
global
:
copyright_results
.
failed_header
.
count
)
"
-no_newline
write-high "
Pass:
$
(
$
global
:
copyright_results
.
passed
.
count
)
, Fail:
$(
$
global
:
copyright_results
.
failed_date
.
count
+
$
global
:
copyright_results
.
failed_header
.
count
)
"
-no_newline
if
(
$
global
:
copyright_results
.
skipped
.
count
-gt
0
)
{
if
(
$
global
:
copyright_results
.
skipped
.
count
-gt
0
)
{
write-high
", Skipped:
$(
$
global
:
copyright_results
.
skipped
.
count
)
"
-no_newline
write-high
", Skipped:
$(
$
global
:
copyright_results
.
skipped
.
count
)
"
-no_newline
...
@@ -366,7 +370,8 @@ if ($global:copyright_results.skipped.count -gt 0) {
...
@@ -366,7 +370,8 @@ if ($global:copyright_results.skipped.count -gt 0) {
if
(
$
global
:
copyright_results
.
unsupported
.
count
-gt
0
)
{
if
(
$
global
:
copyright_results
.
unsupported
.
count
-gt
0
)
{
write-high
", Unsupported:
$(
$
global
:
copyright_results
.
unsupported
.
count
)
"
-no_newline
write-high
", Unsupported:
$(
$
global
:
copyright_results
.
unsupported
.
count
)
"
-no_newline
}
}
write-high
''
write-minimal
" (
$(
$timer
.
Elapsed
.
TotalSeconds
.
ToString
(
"0.000"
)
)
seconds)"
$
global
:
colors
.
low
-no_newline
write-minimal
''
if
(
$
global
:
copyright_results
.
failed_header
.
count
-gt
0
)
{
if
(
$
global
:
copyright_results
.
failed_header
.
count
-gt
0
)
{
write-low
''
write-low
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment