We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d902358 commit 5b810b3Copy full SHA for 5b810b3
.github/actions/deploy/action.yml
@@ -37,7 +37,15 @@ runs:
37
shell: bash
38
run: |
39
echo "::debug::CF_API=${{ inputs.CF_API }}"
40
- cf login -a ${{ inputs.CF_API }} -u ${{ inputs.CF_USERNAME }} -p ${{ inputs.CF_PASSWORD }} -o ${{ inputs.CF_ORG }} -s ${{ inputs.CF_SPACE }}
+ for i in {1..3}; do
41
+ cf login -a ${{ inputs.CF_API }} -u ${{ inputs.CF_USERNAME }} -p ${{ inputs.CF_PASSWORD }} -o ${{ inputs.CF_ORG }} -s ${{ inputs.CF_SPACE }} && break
42
+ echo "cf login failed, retrying ($i/3)..."
43
+ sleep 10
44
+ if [ "$i" -eq 3 ]; then
45
+ echo "❌ cf login failed after 3 attempts."
46
+ exit 1
47
+ fi
48
+ done
49
50
- name: Install Multi-Target Application Build Tool (MBT)
51
0 commit comments