File: postversion.sh

package info (click to toggle)
node-lolex 5.1.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 800 kB
  • sloc: sh: 32; makefile: 10
file content (13 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR > /dev/null

# check that that origin points to the sinonjs/lolex repo
git remote -v | grep 'origin.*sinonjs/lolex.*push' > /dev/null

if [[ $? != 0 ]]; then
    echo "'origin' doesn't point to the sinonjs/lolex repo. Fix tag push manually!"
    exit 1
fi

git push --follow-tags origin