SO i have the pipeline below, Which run fine when i commit to master but i want it to run a separate pipeline after master is tagged.
Which it does not... no erros or anything, I have read that this might not be possible? any advice on doing this?
image: node:18
clone:
depth: full
definitions:
steps:
- step: &tag-repo
name: Tag with latest version number
script:
- npm version patch -m "[skip ci] bumped the version"
- VERSION=$(node -e "console.log(require('./package.json').version);")
- git push origin master # Push the changes to the master branch
- git push origin --tags
- cat package.json
- step: &get-version
name: Determine latest build number
script:
- VERSION=$(node -e "console.log(require('./package.json').version);")
- ls -ltr
- cat package.json
pipelines:
branches:
master:
- step: *tag-repo
tags:
"*":
- step: *get-version