You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/tag_release.sh

13 lines
220 B
Bash

#!/bin/sh
DATE=$(which gdate || which date)
git fetch --all
TAG=$($DATE -d "$(git log --tags -1 --format='%aD')" '+%Y.%m.%d')
if git tag -a $TAG -m "Add release $TAG" origin/master; then
git push origin $TAG
fi