Skip to content

Commit 6022d7f

Browse files
authored
Also print logs on CI failure (#15)
1 parent 02ba3f6 commit 6022d7f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/cf.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55
inputs:
66
cf-api:
77
description: 'Cloud Foundry API endpoint'
8-
required: true
8+
required: false
99
type: string
1010
cf-org:
1111
description: 'Cloud Foundry organization'
12-
required: true
12+
required: false
1313
type: string
1414
cf-space:
1515
description: 'Cloud Foundry space'
16-
required: true
16+
required: false
1717
type: string
1818
environment:
1919
description: 'Deployment environment name'
@@ -59,7 +59,12 @@ jobs:
5959
environment: ${{ inputs.environment || 'Staging' }}
6060

6161
- run: cf logs ${{ env.APP_NAME }} --recent
62+
if: always()
6263
- run: cf logs orders-srv --recent
64+
if: always()
6365
- run: cf logs reviews-srv --recent
66+
if: always()
6467
- run: cf logs bookstore-srv --recent
68+
if: always()
6569
- run: cf logs ${{ env.APP_NAME }}-db-deployer --recent
70+
if: always()

0 commit comments

Comments
 (0)