Skip to content

Commit

Permalink
.github: split into multiple selectable jobs
Browse files Browse the repository at this point in the history
[skip ci]

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Feb 28, 2024
1 parent 2bf6ec7 commit 24549d1
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ name: Manny the Manager
on:
workflow_dispatch:
inputs:
checkout:
required: true
type: boolean
cleanup:
required: true
type: boolean
peek:
required: true
type: boolean

jobs:
inventory:
Expand All @@ -30,6 +36,10 @@ jobs:
docker images
echo "Available containers: ========================================================="
docker ps -a
checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore Cache of dl/
uses: actions/cache@v4
Expand Down Expand Up @@ -60,15 +70,23 @@ jobs:
ls $HOME
echo "Find $HOME ===================================================================="
find $HOME
peeky:
if: ${{ inputs.peek }}
runs-on: ubuntu-latest
steps:
- name: Peek & Poke ...
run: |
whoami
ls -l /mnt
touch /mnt/hej
ls -l /mnt
ls -l /mnt/
cat /mnt/DATALOSS_WARNING_README.txt
sudo mkdir /mnt/x-aarch64
sudo chown $(id -un):$(id -gn) /mnt/x-aarch64
ls -l /mnt/
cleanup:
if: ${{ inputs.cleanup }}
needs: inventory
needs: [inventory, peeky]
runs-on: ubuntu-latest
steps:
- name: Cleaning up cruft ...
Expand Down

0 comments on commit 24549d1

Please sign in to comment.