Event is triggering for every tag without matching the pattern
See original GitHub issueI have setup a mobile deployment for on create tag with specific regex pattern. But the deployment is starting for every tag regardless the pattern. Following is my yml code snippet.
on:
create:
tags:
- '^v(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)(\()(\d+)(\))$'
Then I have tried with the simplest pattern which was mentioned in the documentation.
on:
create:
tags:
-v*
But still the same results. It was triggering for every tag was created.
To Reproduce Add one of above trigger to your yml file and create a new tag named “test”
Expected behavior Deployment event should not have been started.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Amazon EventBridge event patterns
Event patterns have the same structure as the events they match. Rules use event patterns to select events and send them to targets....
Read more >Trigger Github Action only on new tags?
Use the following syntax: on: push: # Pattern matched against refs/tags tags: - '*' # Push events to every tag not containing /....
Read more >Element visibility trigger - Tag Manager Help
If multiple elements on a given page are matched by a CSS Selector, this trigger will fire the first time each one of...
Read more >Tag based build trigger doesn't work - Other Issues
The first thing to check when you have build trigger issues is the webhook. E.g. GitLab has a separate “webhook event” for Tags...
Read more >How to Use ReGex for Google Tag Manager
In triggers, you can utilize RegEx in the Custom Event Trigger and in filter settings, such as Matches RegEx, Matches RegEx (ignore case),...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Able to get it sorted as well. Following filters works for me
Great, thanks @tharindu-dif for the quick feedback! I will close this issue since we have solved the problem.