Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,21 @@ jobs:
uses: actions/checkout@v4

- name: Install
# Command needs to be wrapped in single quotes so backslashes are preserved for Windows paths
run: "'${{ github.workspace }}${{ runner.os == 'Windows' && '\\' || '/' }}main.sh'"
run: |
set -eo pipefail
script="'${{ github.workspace }}${{ runner.os == 'Windows' && '\\' || '/' }}main.sh'"
max_attempts=3
attempt=1
until eval "$script"; do
status=$?
if [ $attempt -ge $max_attempts ]; then
echo "Failed after $attempt attempts (exit $status)"
exit $status
fi
echo "Attempt $attempt failed (exit $status). Retrying in $((attempt*5))s..."
sleep $((attempt*5))
attempt=$((attempt+1))
done
shell: bash
env:
DDA_INSTALL_VERSION: latest
Expand Down
17 changes: 15 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,21 @@ runs:
using: composite
steps:
- name: Install and configure dda
# Command needs to be wrapped in single quotes so backslashes are preserved for Windows paths
run: "'${{ github.action_path }}${{ runner.os == 'Windows' && '\\' || '/' }}main.sh'"
run: |
set -eo pipefail
script="'${{ github.action_path }}${{ runner.os == 'Windows' && '\\' || '/' }}main.sh'"
max_attempts=3
attempt=1
until eval "$script"; do
status=$?
if [ $attempt -ge $max_attempts ]; then
echo "Failed after $attempt attempts (exit $status)"
exit $status
fi
echo "Attempt $attempt failed (exit $status). Retrying in $((attempt*5))s..."
sleep $((attempt*5))
attempt=$((attempt+1))
done
shell: bash
env:
DDA_INSTALL_VERSION: "${{ inputs.version }}"
Expand Down