spotify-secrets/update.sh

18 lines
343 B
Bash
Executable file

#!/bin/bash
set -e
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
mkdir -p tmp
deno run run
if [ -z "$(git status secrets --porcelain)" ]; then
echo "no changes"
else
# Uncommitted changes
VERSION=$(jq -r '.[-1].version' secrets/secrets.json)
git add secrets/*
git commit -m "update secrets (v$VERSION)"
git push origin main
fi