Files
flipper/scripts/push-new-github-tag.sh
Pritesh Nandgaonkar 41d0b2eec2 Move iOS scripts to xplat
Summary: Move iOS scripts to xplat

Reviewed By: passy

Differential Revision: D8989985

fbshipit-source-id: 1499657f6d9b7e82f26aa8c008951c885756b51d
2018-07-26 05:21:43 -07:00

18 lines
540 B
Bash

#!/bin/bash
echo "✨ Creating new Sonar iOS release on GitHub..."
echo "What should the patch version of the next release be?"
read -r VERSION
TMP_DIR=$(mktemp -d)
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
JSON=$(cat "$DIR/public-ios-release.json")
JSON=${JSON/__VERSION__/$VERSION}
JSON=${JSON/__VERSION__/$VERSION}
JSON=${JSON/__USER__/$USER}
echo "$JSON" > "$TMP_DIR/job.json"
scutil create "$TMP_DIR/job.json"
echo "✅ GitHub release will be automatically created once the Sandcastle job finishes."
rm -rf "$TMP_DIR"