Skip to content

Commit 03ed009

Browse files
committed
Automatically strip datetime of GitHub Actions in tag_from_output.rb
1 parent b60306d commit 03ed009

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tool/tag_from_output.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
output = ARGF.readlines
1313

14+
# Automatically strip datetime of GitHub Actions
15+
if output.first =~ /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+Z /
16+
output = output.map { |line| line.split(' ', 2).last }
17+
end
18+
1419
NUMBER = /^\d+\)$/
1520
ERROR_OR_FAILED = / (ERROR|FAILED)$/
1621
SPEC_FILE = /^(\/.+_spec\.rb)\:\d+/

0 commit comments

Comments
 (0)