Skip to content

Commit

Permalink
Move to upload-artifact and cache v4
Browse files Browse the repository at this point in the history
  • Loading branch information
qbarrand committed Feb 27, 2024
1 parent 0558d89 commit 2d4c17f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
15 changes: 7 additions & 8 deletions .github/actions/collect-troubleshooting/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Collect troubleshooting data

description: This action fetches some troubleshooting data for KMM

inputs:
output-file:
description: Name of the archive file
artifact-name:
description: The name of the artifact for the support bundle
required: true

description: This action fetches some troubleshooting data for KMM
runs:
using: composite

Expand All @@ -18,10 +17,10 @@ runs:
shell: bash

- name: Collect a support bundle
run: kubectl support-bundle -o ${{ inputs.output-file }} ./support/kmm.spec.yaml
run: kubectl support-bundle -o support-bundle.tar.gz ./support/kmm.spec.yaml
shell: bash

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: support-bundle
path: ${{ inputs.output-file }}
name: ${{ inputs.artifact-name }}
path: support-bundle.tar.gz
2 changes: 1 addition & 1 deletion .github/actions/create-minikube-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
shell: bash

- name: Cache Minikube artifacts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.minikube/cache
key: ${{ runner.os }}-minikube-${{ steps.install-minikube.outputs.version }}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
path: kmm-worker_local.tar
retention-days: 1

e2e:
e2e:
strategy:
matrix:
include:
Expand Down Expand Up @@ -180,10 +180,9 @@ jobs:

- name: Collect troubleshooting data
uses: ./.github/actions/collect-troubleshooting
if: ${{ always() }}
with:
output-file: ${{ matrix.name }}-support-bundle.tar.gz

artifact-name: ${{ matrix.name }}
if: ${{ always() }}

operator-upgrade:

Expand Down Expand Up @@ -248,6 +247,6 @@ jobs:

- name: Collect troubleshooting data
uses: ./.github/actions/collect-troubleshooting
if: ${{ always() }}
with:
output-file: operator-upgrade-support-bundle.tar.gz
artifact-name: ${{ github.job }}
if: ${{ always() }}

0 comments on commit 2d4c17f

Please sign in to comment.