Skip to content

Commit

Permalink
Merge pull request #6 from konvenit/MP-48761-upload-artifacts
Browse files Browse the repository at this point in the history
MP-48761-upload-artifacts
  • Loading branch information
stereosupersonic authored Sep 19, 2023
2 parents 2f1eee9 + d0d31f6 commit 065ae68
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/compose_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
required: false
type: string
default: null
artifacts_path:
required: false
type: string
default: null
cmd:
required: true
type: string
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 065ae68

Please sign in to comment.