File tree Expand file tree Collapse file tree 2 files changed +42
-32
lines changed Expand file tree Collapse file tree 2 files changed +42
-32
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ jobs:
100
100
-legacy \
101
101
-noout \
102
102
-passin env:CERTIFICATE_PASSWORD
103
- ) || (
103
+ ) \
104
+ || \
105
+ (
104
106
echo "::error::Verification of ${{ matrix.certificate.identifier }} failed!!!"
105
107
exit 1
106
108
)
@@ -124,39 +126,45 @@ jobs:
124
126
run : |
125
127
if [[ ${{ matrix.certificate.type }} == "pkcs12" ]]; then
126
128
EXPIRATION_DATE="$(
127
- (
129
+ (
128
130
openssl pkcs12 \
129
- -in ${{ env.CERTIFICATE_PATH }} \
130
- -clcerts \
131
- -legacy \
132
- -nodes \
133
- -passin env:CERTIFICATE_PASSWORD
134
- ) | (
131
+ -in ${{ env.CERTIFICATE_PATH }} \
132
+ -clcerts \
133
+ -legacy \
134
+ -nodes \
135
+ -passin env:CERTIFICATE_PASSWORD
136
+ ) \
137
+ | \
138
+ (
135
139
openssl x509 \
136
- -noout \
137
- -enddate
138
- ) | (
140
+ -noout \
141
+ -enddate
142
+ ) \
143
+ | \
144
+ (
139
145
grep \
140
- --max-count=1 \
141
- --only-matching \
142
- --perl-regexp \
143
- 'notAfter=(\K.*)'
144
- )
146
+ --max-count=1 \
147
+ --only-matching \
148
+ --perl-regexp \
149
+ 'notAfter=(\K.*)'
150
+ )
145
151
)"
146
152
elif [[ ${{ matrix.certificate.type }} == "x509" ]]; then
147
153
EXPIRATION_DATE="$(
148
- (
154
+ (
149
155
openssl x509 \
150
- -in ${{ env.CERTIFICATE_PATH }} \
151
- -noout \
152
- -enddate
153
- ) | (
156
+ -in ${{ env.CERTIFICATE_PATH }} \
157
+ -noout \
158
+ -enddate
159
+ ) \
160
+ | \
161
+ (
154
162
grep \
155
- --max-count=1 \
156
- --only-matching \
157
- --perl-regexp \
158
- 'notAfter=(\K.*)'
159
- )
163
+ --max-count=1 \
164
+ --only-matching \
165
+ --perl-regexp \
166
+ 'notAfter=(\K.*)'
167
+ )
160
168
)"
161
169
fi
162
170
Original file line number Diff line number Diff line change 12
12
DEFAULT_GO_MODULE_PATH : ./
13
13
DEFAULT_GO_PACKAGES : |
14
14
$( \
15
- go list ./... | \
16
- grep --invert-match 'github.com/arduino/arduino-lint/internal/rule/schema/schemadata' | \
17
- tr '\n' ' ' \
15
+ go list ./... \
16
+ | \
17
+ grep --invert-match 'github.com/arduino/arduino-lint/internal/rule/schema/schemadata' \
18
+ | \
19
+ tr '\n' ' ' \
18
20
|| \
19
21
echo '"ERROR: Unable to discover Go packages"' \
20
22
)
@@ -589,9 +591,9 @@ tasks:
589
591
cmds :
590
592
- |
591
593
if [[ "{{.OS}}" == "Windows_NT" ]] && which cygpath &>/dev/null; then
592
- # Even though the shell handles POSIX format absolute paths as expected, external applications do not.
593
- # So paths passed to such applications must first be converted to Windows format.
594
- cygpath -w "{{.RAW_PATH}}"
594
+ # Even though the shell handles POSIX format absolute paths as expected, external applications do not.
595
+ # So paths passed to such applications must first be converted to Windows format.
596
+ cygpath -w "{{.RAW_PATH}}"
595
597
else
596
598
echo "{{.RAW_PATH}}"
597
599
fi
You can’t perform that action at this time.
0 commit comments