Skip to content

Commit

Permalink
Generate manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
vanosg committed Jan 17, 2024
1 parent 064cbdb commit fd99803
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,26 @@ jobs:
tar -czvf ./packages/${pkgname}.tgz $dir
fi
done
- name: Generate manifest
run: |
echo "[" > manifest2
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\"}," >> ../../manifest2
cd ../..
fi
done
sed -i '$ s/.$//' manifest2
echo "]" >> manifest2
- name: Commit autoscripts packages
uses: EndBug/add-and-commit@v9
with:
add: './packages/*.tgz'
add: './packages/*.tgz' manifest
author_name: Eggheads Autoscripts
author_email: [email protected]
default_author: user_info
Expand Down

0 comments on commit fd99803

Please sign in to comment.