Skip to content

Commit eccc8d8

Browse files
committed
gha: test: update GHA output code for IP address and add error/warning output for nginx log files
1 parent d777b37 commit eccc8d8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Get machine's first IPv4 address for eth0
3030
id: ip
3131
run: |
32-
echo ::set-output name=ETHER::$(sudo ip addr show dev eth0 | egrep "^(\ )+inet\ " | head -1 | tr -s " " | cut -d " " -f 3 | cut -d "/" -f 1)
32+
echo "ETHER=$(sudo ip addr show dev eth0 | egrep '^(\ )+inet\ ' | head -1 | tr -s ' ' | cut -d ' ' -f 3 | cut -d '/' -f 1)" >> $GITHUB_OUTPUT
3333
3434
- name: Show the IPs via vars
3535
run: |
@@ -162,6 +162,10 @@ jobs:
162162
run: |
163163
pipetty ccze -A < cold_cache.txt
164164
165+
- name: "ERRORS/WARNINGS: cold_cache.txt"
166+
run: |
167+
grep -e "error" -e "warn" cold_cache.txt | pipetty ccze -A || true
168+
165169
- name: "JSON: cold_cache.txt"
166170
run: |
167171
grep '^{"' cold_cache.txt | pipetty jq .
@@ -191,6 +195,10 @@ jobs:
191195
echo "--------------------------------------------------------------"
192196
grep '^{"' warm_cache.txt | pipetty jq .
193197
198+
- name: "ERRORS/WARNINGS: warm_cache.txt"
199+
run: |
200+
grep -e "error" -e "warn" warm_cache.txt | pipetty ccze -A || true
201+
194202
- name: "JSON: warm_cache.txt"
195203
run: |
196204
grep '^{"' warm_cache.txt | pipetty jq .

0 commit comments

Comments
 (0)