diff --git a/.github/workflows/compose_run.yaml b/.github/workflows/compose_run.yaml index e4fcdb6..c6abac2 100644 --- a/.github/workflows/compose_run.yaml +++ b/.github/workflows/compose_run.yaml @@ -18,6 +18,10 @@ on: required: false type: string default: null + artifacts_path: + required: false + type: string + default: null cmd: required: true type: string @@ -73,6 +77,14 @@ jobs: ci_env=`bash <(curl -s https://codecov.io/env)` docker-compose -f docker-compose.test.yml exec -T -e CI=true $ci_env ${{ inputs.application-name }} ${{ inputs.cmd}} + - name: upload artifact + # uploads only if run failed + if: ${{ failure() && inputs.artifacts_path }} + uses: actions/upload-artifact@v3 + with: + name: upload artifacts + path: ${{ inputs.artifacts_path }} + - name: Remove Algolia index (flaky!) if: inputs.algolia_index && always() run: |