From fb117644b0484060355829eb4ab0882de09d06ee Mon Sep 17 00:00:00 2001 From: Jordan Barrett Date: Wed, 29 Mar 2023 14:38:48 +1100 Subject: [PATCH] [CI] capture logs from Charmcraft --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4337041..647c2fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,7 @@ jobs: # Currently the only way to get charms on k8s is via Charmhub. - name: Upload charm to Charmhub + id: charmcraft if: matrix.cloud == 'microk8s' env: CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} @@ -67,6 +68,14 @@ jobs: charmcraft upload $LOCAL_CHARM_PATH \ --name $CHARMHUB_NAME --release $CHARMHUB_CHANNEL + - name: Save charmcraft logs as artifact + if: always() && steps.charmcraft.outcome != 'skipped' + uses: actions/upload-artifact@v3 + with: + name: charmcraft-upload-logs + path: ~/.local/state/charmcraft/log/ + continue-on-error: true + - name: Set up LXD if: matrix.cloud == 'lxd' uses: canonical/setup-lxd@90d76101915da56a42a562ba766b1a77019242fd