Using Github Compositoin to reduce the yaml duplication. https://github.blog/changelog/2021-08-25-github-actions-reduce-duplication-with-action-composition/ Closes: https://github.com/rook/rook/issues/8637 Signed-off-by: subhamkrai <srai@redhat.com>
22 lines
599 B
YAML
22 lines
599 B
YAML
# This isn't to be used for the go integration tests because their logs are placed in a different location and require few extra steps.
|
|
name: Log Collector
|
|
description: Log collector for canary test
|
|
inputs:
|
|
name:
|
|
description: Name to use for the workflow
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: collect common logs
|
|
shell: bash --noprofile --norc -eo pipefail -x {0}
|
|
run: |
|
|
tests/scripts/collect-logs.sh
|
|
|
|
- name: Upload canary test result
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ inputs.name }}
|
|
path: test
|