I love bash

This commit is contained in:
Filip Tibell 2023-05-06 12:44:49 +02:00
parent bf1df9bc90
commit 8c0075d120
No known key found for this signature in database
2 changed files with 25 additions and 1 deletions

View file

@ -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

View file

@ -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