github-actions - Github Actions: Run workflow only on latest tag?
问题描述
on:
push:
tags:
- '*'
This would run the workflow on all the new tags pushed. Is there a way to only run the workflow on the latest tag among the new tags which are pushed?
解决方案
尝试这个:
on:
push:
branches:
- 'refs/tags/*'
或这个:
on:
push:
tags:
- *