[BUG] Re-running a workflow triggered by a tag event causes the wrong previous tag to be selected #2106
Closed
4 tasks done
Labels
bug
Something isn't working
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
I have a workflow running on every tag push event that checks out the repository and lists files changed since the previous tag. This works perfectly for every new tag created, but if I choose to Re-run all jobs after new tags have been created, this action gets confused and seems to select the tag before HEAD rather than the one before the tag the event relates to.
To Reproduce
I created a repository showcasing this behaviour:
All tags were created using:
without any modification to the workflow in between.
On the logs of the workflow run for
v2
you can see the output:After new tags were created, I selected Re-run all jobs and I got the following different output:
(The previous tag is now one in the future)
Nothing else changed between runs, other than new tags being pushed.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
Re-running a workflow should select the same previous tag.
Relevant log output
Has all relevant logs been included?
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: