Skip to content

Commit

Permalink
feat(ci): add ujust recipe to list installed rpms (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ledif authored Jan 23, 2025
1 parent 4d96003 commit 31652af
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/validate-just.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Validate Justfiles

on:
pull_request:
paths:
- "Justfile"
- "just/*"
push:
branches:
- main
paths:
- "Justfile"
- "just/*"

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Install Just
shell: bash
run: bash .github/workflows/shared/install-just.sh

- name: Check Just Syntax
shell: bash
run: |
just check
7 changes: 7 additions & 0 deletions just/aurora-apps.just
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,10 @@ setup-brew-not-found ACTION="":
pkexec rm -f "${FILES_TO_BE_REMOVED[@]}"
echo "Brew command-not-found has been ${b}${red}disabled${n}"
fi
# List installed RPM packages of currently booted system
[group('Apps')]
list-installed-rpms:
#!/usr/bin/env bash
deployment=$(rpm-ostree status --json | jq '.deployments[] | select(.booted == true) | .checksum' | sed 's/"//g')
rpm-ostree db list $deployment

0 comments on commit 31652af

Please sign in to comment.