diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a4052a..5037fe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,7 +165,7 @@ jobs: - name: Collect troubleshooting data id: debug-data - if: always() + if: failure() run: | declare debug_data_dir="$(mktemp -d)" @@ -194,7 +194,7 @@ jobs: echo "path=${debug_data_dir}" >>"$GITHUB_OUTPUT" - name: Upload collected troubleshooting data - if: always() && steps.debug-data.path + if: always() && steps.debug-data.outputs.path uses: actions/upload-artifact@v3 with: name: debug-data diff --git a/docker-compose.yml b/docker-compose.yml index 4e519e8..66c96fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: init: true volumes: - ./setup/entrypoint.sh:/entrypoint.sh:ro,Z - - ./setup/helpers.sh:/helpers.sh:ro,Z + - ./setup/lib.sh:/lib.sh:ro,Z - ./setup/roles:/roles:ro,Z - setup:/state:Z environment: diff --git a/setup/entrypoint.sh b/setup/entrypoint.sh index 3700683..ec1e1ff 100755 --- a/setup/entrypoint.sh +++ b/setup/entrypoint.sh @@ -3,7 +3,7 @@ set -eu set -o pipefail -source "${BASH_SOURCE[0]%/*}"/helpers.sh +source "${BASH_SOURCE[0]%/*}"/lib.sh # -------------------------------------------------------- diff --git a/setup/helpers.sh b/setup/lib.sh similarity index 100% rename from setup/helpers.sh rename to setup/lib.sh