forked from GitHubMirrors/silverbullet-icalendar
switch to ical.js and cleanup obsolete files - v0.4.6 [skip-ci]
All checks were successful
Build SilverBullet Plug / build (push) Successful in 11s
All checks were successful
Build SilverBullet Plug / build (push) Successful in 11s
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Extract versions
|
||||
DENO_VERSION=$(grep '"version":' deno.json | cut -d'"' -f4)
|
||||
TS_VERSION=$(grep "const VERSION =" icalendar.ts | cut -d'"' -f2)
|
||||
YAML_VERSION=$(grep "version:" icalendar.plug.yaml | head -n 1 | awk '{print $2}')
|
||||
PLUG_MD_VERSION=$(grep "version:" PLUG.md | head -n 1 | awk '{print $2}')
|
||||
PLUG_MD_VERSION=$(grep "version:" PLUG.md | head -n 1 | awk '{print $2}' | tr -d '"')
|
||||
|
||||
echo "Checking versions..."
|
||||
echo "icalendar.ts: $TS_VERSION"
|
||||
echo "deno.json: $DENO_VERSION"
|
||||
echo "icalendar.ts: $TS_VERSION"
|
||||
echo "icalendar.plug.yaml: $YAML_VERSION"
|
||||
echo "PLUG.md: $PLUG_MD_VERSION"
|
||||
echo "PLUG.md: $PLUG_MD_VERSION"
|
||||
|
||||
if [ "$TS_VERSION" == "$YAML_VERSION" ] && [ "$YAML_VERSION" == "$PLUG_MD_VERSION" ]; then
|
||||
if [ "$DENO_VERSION" == "$TS_VERSION" ] && [ "$TS_VERSION" == "$YAML_VERSION" ] && [ "$YAML_VERSION" == "$PLUG_MD_VERSION" ]; then
|
||||
echo "✅ All versions match."
|
||||
exit 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user