i hate this
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
stryan 2024-09-04 22:12:19 -04:00
parent ac55eced09
commit c83a77e925
2 changed files with 12 additions and 3 deletions

View File

@ -10,7 +10,7 @@ steps:
from_secret: build_username from_secret: build_username
dockerfile: Containerfile dockerfile: Containerfile
tags: latest tags: latest
config_json: configjson:
from_secret: config_json from_secret: config_json
when: when:
- branch: 'master' - branch: 'master'

View File

@ -1,6 +1,15 @@
#!/bin/bash #!/bin/bash
echo "$CONFIG_JSON" >> config.json echo "$PLUGIN_CONFIGJSON" >> config.json
if [ ! -s config.json ]; then
echo "no config found"
exit 1
fi
if [[ -z $(grep '[^[:space:]]' "config.json") ]] ; then
echo "no config in file"
exit 1
fi
for d in packs/*/ ; do for d in packs/*/ ; do
sticker-pack "$d" --add-to-index web/packs/ sticker-pack "$d" --add-to-index web/packs/
done done
rm config.json