diff --git a/.github/workflows/fetch_snaps.yaml b/.github/workflows/fetch_snaps.yaml index 823df8cd..a581e6a2 100644 --- a/.github/workflows/fetch_snaps.yaml +++ b/.github/workflows/fetch_snaps.yaml @@ -53,4 +53,8 @@ jobs: juju deploy ./releases/latest/postgresql-bundle.yaml sleep 1000 juju status - juju exec --all -- snap list \ No newline at end of file + juju exec --all -- snap list -o snaps.txt + cat ./snaps.txt + cat ./snaps.txt | awk '! /^[0-9]/ && $1 != "Name" { print $1, $3, $4 }' | sort | uniq > output.txt + snap info canonical-livepatch | awk '/^channels:/ {found=1; next} found && $1 != "" {print $1, $2; exit}' >> output.txt + cat ./output.txt