Skip to content

Commit

Permalink
Issue #422: Cleanup directories before installing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Jan 10, 2025
1 parent 1d1bb29 commit 7e4fc91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-nightly-release-alma9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
- name: setup directories and install spack for the coredaq release
run: |
rm -rf $BASE_RELEASE_DIR
rm -rf $DET_RELEASE_DIR
source daq-release/.github/workflows/wf-setup-tools.sh
input_feature_branch=${{ github.event.inputs.feature-branch }}
# For automatically triggered workflows where feature-branch is not set, fall back to default branch
Expand All @@ -73,6 +75,8 @@ jobs:
attempt=1
echo "First build attempt failed due to a FetchError. Will retry up to $max_attempts times."
while (( attempt <= max_attempts )); do
rm -rf $BASE_RELEASE_DIR
rm -rf $DET_RELEASE_DIR
daq-release/scripts/spack/build-release.sh $BASE_RELEASE_DIR $DET_RELEASE_DIR fd $OS ${{ github.event.inputs.feature-branch }} && break
echo "Retry attempt $attempt/$max_attempts failed."
attempt=$((attempt+1))
Expand Down

0 comments on commit 7e4fc91

Please sign in to comment.