Skip to content

Action run being trigger multiple times #25029

Answered by chrispat
lomudi asked this question in Actions
Discussion options

You must be logged in to vote

This is due to GitHub events not really being singular but being loosly a set of events that can happen to a given resource.  If you look at the documentation for the release event it will be triggered when a release is published, unpublished, created, edited, deleted and prereleased.

We recently added a feature to the event trigger to let you filter based on these different types of events (doc update coming).  So ifyou want to only trigger when the release is published you could specify that as follows:

on:
  release:
    types: [published]

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Serhiy-dotcom
Comment options

@lin-ycv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants