From bbfdf8c7ecbbcc840c6fec201cd6caa5f0b0593a Mon Sep 17 00:00:00 2001 From: Geo Date: Tue, 16 Jan 2024 22:42:32 -0500 Subject: [PATCH] move add files around --- .github/workflows/github_actions.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 89b93ca..8fd8e88 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -22,10 +22,27 @@ jobs: fi done + - name: Generate manifest + run: | + echo "[" > manifest + for dir in src/*; do + if [ -d $dir ]; then + cd "$dir" + name=$(jq -r '.name' manifest.json) + version_major=$(jq -r '.version_major' manifest.json) + version_minor=$(jq -r '.version_minor' manifest.json) + description=$(jq -r '.description' manifest.json) + echo "{\"name\":\"$name\",\"version_major\":\"$version_major\",\"version_minor\":\"$version_minor\",\"description\":\"$description\"}," >> ../../manifest + cd ../.. + fi + done + sed -i '$ s/.$//' manifest + echo "]" >> manifest + - name: Commit autoscripts packages uses: EndBug/add-and-commit@v9 with: - add: './packages/*.tgz' 'manifest' + add: './packages/*.tgz manifest' author_name: Eggheads Autoscripts author_email: geo@eggheads.org default_author: user_info