Skip to content

Commit

Permalink
try parsing output
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgameiroborges committed Sep 26, 2024
1 parent 1aae7f7 commit 0051732
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/fetch_snaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ jobs:
juju deploy ./releases/latest/postgresql-bundle.yaml
sleep 1000
juju status
juju exec --all -- snap list
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

0 comments on commit 0051732

Please sign in to comment.