From 8c0075d1204904d4d5c82d4e1bc03a0448c2206f Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 6 May 2023 12:44:49 +0200 Subject: [PATCH] I love bash --- .github/workflows/release.yaml | 14 +++++++++++++- .justfile | 12 ++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 615c798..fa0d490 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -126,7 +126,19 @@ jobs: - name: List binaries shell: bash - run: ls -lhrt ./binaries + run: | + cd ./binaries + ls -lhrt + for DIR in */ ; do + cd "$DIR" + for FILE in * ; do + if [ ! -d "$FILE" ]; then + echo "$DIR$FILE" + fi + done + cd .. + done + cd .. - name: Create release uses: softprops/action-gh-release@v1 diff --git a/.justfile b/.justfile index c247ba6..ffcc203 100644 --- a/.justfile +++ b/.justfile @@ -32,3 +32,15 @@ generate-gitbook: # Publish gitbook directory to gitbook branch publish-gitbook: generate-gitbook npx push-dir --dir=gitbook --branch=gitbook + +list: + #!/usr/bin/env bash + for DIR in */ ; do + cd "$DIR" + for FILE in * ; do + if [ ! -d "$FILE" ]; then + echo "$DIR$FILE" + fi + done + cd .. + done