Skip to content

Instantly share code, notes, and snippets.

View onovaes's full-sized avatar

Gabriel Novaes onovaes

View GitHub Profile
image: exileed/php-testing:7.4
pipelines:
default:
- parallel:
- step:
name: CodeStyle Check
caches:
- composer
script:
@onovaes
onovaes / gitautotag.sh
Created November 18, 2020 14:17 — forked from dtiemann83/gitautotag.sh
A quick BASH script to automatically add a git tag by incrementing --major --minor --bug version, based on (most recent) previous tag.
#!/bin/bash
CURTAG=`git describe --abbrev=0 --tags`;
CURTAG="${CURTAG/v/}"
IFS='.' read -a vers <<< "$CURTAG"
MAJ=${vers[0]}
MIN=${vers[1]}
BUG=${vers[2]}