summaryrefslogtreecommitdiffstats
path: root/.github/actions/upload_awx_devel_logs/action.yml
blob: bad2cd34c301f82903e511f2b79cc55316b52257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Upload logs
description: Upload logs from `make docker-compose` devel environment to GitHub as an artifact
inputs:
  log-filename:
    description: "*Unique* name of the log file"
    required: true
runs:
  using: composite
  steps:
    - name: Get AWX logs
      shell: bash
      run: |
        docker logs tools_awx_1 > ${{ inputs.log-filename }}

    - name: Upload AWX logs as artifact
      uses: actions/upload-artifact@v4
      with:
        name: docker-compose-logs-${{ inputs.log-filename }}
        path: ${{ inputs.log-filename }}