File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 30
30
- name : Check replaced string
31
31
shell : bash
32
32
run : |
33
- if [[ '${{ steps.replace-string.output .replaced-string }}' != 'Apple Apricot' ]]; then
33
+ if [[ '${{ steps.replace-string.outputs .replaced-string }}' != 'Apple Apricot' ]]; then
34
34
echo '!!! Action replace-string failed to make simple string replacement'
35
35
exit 1
36
36
fi
52
52
- name : Check replaced string
53
53
shell : bash
54
54
run : |
55
- if [[ '${{ steps.replace-string.output .replaced-string }}' != 'Apricot Redberry' ]]; then
55
+ if [[ '${{ steps.replace-string.outputs .replaced-string }}' != 'Apricot Redberry' ]]; then
56
56
echo '!!! Action replace-string failed to replace string from a file'
57
57
exit 1
58
58
fi
Original file line number Diff line number Diff line change 33
33
strToReplace = inString ;
34
34
}
35
35
36
- console . log ( strToReplace ) ;
37
- console . log ( inReplaceRegex ) ;
38
- console . log ( inFlags ) ;
39
- console . log ( inReplaceWith ) ;
40
-
41
36
const regex = new RegExp ( inReplaceRegex , inFlags ) ;
42
37
strReplaced = strToReplace . replace ( regex , inReplaceWith ) ;
43
38
44
- console . log ( strReplaced ) ;
45
39
46
40
// Output
47
41
if ( inWriteToFile != '' ) {
You can’t perform that action at this time.
0 commit comments