Skip to content
Snippets Groups Projects
Commit 42a5a774 authored by Guillaume Tucker's avatar Guillaume Tucker
Browse files

HACK add tag.sh to create kernelci-local-snapshot-xxx tags

parent c36f3b3f
No related branches found
No related tags found
No related merge requests found
tag.sh 0 → 100755
#!/bin/bash
set -e
px=kernelci-local-snapshot-
last_tag=$(git tag -l | grep $px | sort | tail -n 1)
n=$(echo $last_tag | awk '{print substr($0,25)}')
n="10#$n"
let 'n=n+1'
m=`printf "%03d" $n`
new_tag="$px""$m"
today=`date +%Y-%m-%d`
msg="KernelCI local snapshot #$m $today"
git tag -a "$new_tag" -m "$msg"
echo "$new_tag"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment