Open sharmmoh1983 opened 2 years ago
I guess that you're placing your prod-v*
tags on main
branch.
I've faced a similar problem where the tag is place on the "base" branch (e.g ci/fix-fail-behavior
in the example below):
There I've seen that path-filter is checking the files changed between the top of the base branch and the tag. Unfortunately, the same commit is referenced by HEAD and the tag, since I've pushed the tag after the branch, so no changes are found.
The only work-around I can think of is to set the "base" branch to the previous tag, i.e. a tag found with git describe --tags --abbrev=0 HEAD~1
.
This work-around is fine provided actions/checkout@v3
was set with fetch-depth: 0
.
We are trying to trigger filter based on release tag but it is not happening . Do you have a working sample . I saw similar issue posted but I was looking for specific example