diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 63e158463..6bd294e83 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -100,6 +100,8 @@ jobs: - name: Collect Logs if: ${{ failure() }} uses: ./.github/workflows/composite/collectlogs + with: + artifact-name: e2e olm: runs-on: ubuntu-20.04 @@ -144,6 +146,8 @@ jobs: - name: Collect Logs if: ${{ failure() }} uses: ./.github/workflows/composite/collectlogs + with: + artifact-name: olm upgrade_version: runs-on: ubuntu-20.04 @@ -192,6 +196,8 @@ jobs: - name: Collect Logs if: ${{ failure() }} uses: ./.github/workflows/composite/collectlogs + with: + artifact-name: upgrade_version - name: Checkout Latest Metal LB Operator uses: actions/checkout@v4 @@ -239,6 +245,8 @@ jobs: - name: Collect Logs if: ${{ failure() }} uses: ./.github/workflows/composite/collectlogs + with: + artifact-name: upgrade_version metallb_e2e: runs-on: ubuntu-20.04 diff --git a/.github/workflows/composite/collectlogs/action.yaml b/.github/workflows/composite/collectlogs/action.yaml index e7ff7839d..1715060f4 100644 --- a/.github/workflows/composite/collectlogs/action.yaml +++ b/.github/workflows/composite/collectlogs/action.yaml @@ -1,13 +1,18 @@ name: "collectlogs" description: "Collect and upload the logs" +inputs: + artifact-name: + description: "the name of artifacts to store" + required: true + runs: using: "composite" steps: - name: Archive E2E Tests logs uses: actions/upload-artifact@v2 with: - name: test_e2e_logs + name: ${{ inputs.artifact-name }}-e2e-logs path: /tmp/test_e2e_logs/ - name: Export kind logs @@ -18,5 +23,5 @@ runs: - name: Archive kind logs uses: actions/upload-artifact@v2 with: - name: kind_logs + name: ${{ inputs.artifact-name }}-kind-logs path: /tmp/kind_logs