File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 34
34
with :
35
35
repository : gsa/data.gov
36
36
path : " ./datagov"
37
- - name : restart ${{ matrix.app }}
37
+ - name : " restart ${{ matrix.app }}"
38
+ id : restart1
39
+ uses : cloud-gov/cg-cli-tools@main
40
+ continue-on-error : true
41
+ with :
42
+ command : datagov/bin/check-and-renew ${{ matrix.app }} restart
43
+ cf_org : gsa-datagov
44
+ cf_space : ${{ inputs.environ }}
45
+ cf_username : ${{secrets.CF_SERVICE_USER}}
46
+ cf_password : ${{secrets.CF_SERVICE_AUTH}}
47
+ - name : " wait 5-30 seconds before retry"
48
+ if : ${{ steps.restart1.outcome == 'failure' }}
49
+ run : |
50
+ SLEEP=$(( (RANDOM % 26) + 5 ))
51
+ echo "Sleeping $SLEEP seconds before retry"
52
+ sleep "$SLEEP"
53
+ - name : " restart again: ${{ matrix.app }}"
54
+ if : ${{ steps.restart1.outcome == 'failure' }}
38
55
uses : cloud-gov/cg-cli-tools@main
39
56
with :
40
57
command : datagov/bin/check-and-renew ${{ matrix.app }} restart
You can’t perform that action at this time.
0 commit comments