Skip to content

How to implement an "after success" action? #27141

Answered by nakedible
GabeDuarteM asked this question in Actions
Discussion options

You must be logged in to vote

Put them both in the same workflow, and add:

jobs:
  build:
    ...
  release:
    if: ${{ github.ref == 'master' }}
    needs: build
    ...

Release job only gets triggered if we are in master branch and “build” job is successful and complete, including the whole matrix.

Replies: 6 comments 1 reply

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
1 reply
@ridwaanzan
Comment options

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