Skip to content

Add btop instead of bashtop and bpytop #64

Add btop instead of bashtop and bpytop

Add btop instead of bashtop and bpytop #64

name: Run sdd install/remove for changed apps
on:
workflow_dispatch:
pull_request:
paths:
- "apps/*@*"
push:
branches: [ master, main ]
paths:
- "apps/*@*"
jobs:
list-of-changed-apps:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed appfiles
id: changed-files
uses: tj-actions/changed-files@v44
with:
json: true
files: |
apps/*@*
- name: Generate matrix with changed appfiles
id: set-matrix
run: >-
{ echo -n "matrix=";
echo "${{ steps.changed-files.outputs.all_changed_files }}" |
jq -c 'map(split("/")[-1]) | unique'; } >> "$GITHUB_OUTPUT"
sdd-install-remove-app:
needs: list-of-changed-apps
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
appname: ${{ fromJson(needs.list-of-changed-apps.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install/remove ${{ matrix.appname }}
run: |
./bin/sdd install ${{ matrix.appname }}
./bin/sdd list --installed
./bin/sdd remove ${{ matrix.appname }}