Issue
I want to trigger a workflow that deploys the build. I want to make sure of the following:
CI
workflow is completed- branch is
develop
- there are some changes in
src/**
on:
workflow_run:
workflows: ['CI']
branches: [develop]
paths: ['src/**']
types:
- completed
It seems the above approach is not supported 😢, is there any other way?
Solution
Considering the workflows
+branches
combo should work, but paths:
does not exist in the workflow_run
context, you might consider using actions/verify-changed-files
That way, you can trigger an intermediate workflow which would check which files have changed.
Then the next step can be run only if the previous step (file check) has succeeded (using success()
)
Answered By - VonC Answer Checked By - Pedro (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.