Hi, I am trying to setup `--changed-since` in GitH...
# general
t
Hi, I am trying to setup
--changed-since
in GitHub Actions for a specific use case but struggle to do so. I would really appreciate some help here. I would like to use
pants list
to get the changed targets and the result will later be used to publish docker images. That is the reason behind using
--changed-since
to really only publish the images for which the source code or dependents changed. The flow on GitHub is as follows: 1. New code is merged from feature branches into develop. On push in develop a workflow is triggered that is supposed to invoke
pants list --changed-since
. With that I would now like to deploy the changes from this feature branch merge. What is the settings for
changed-since
to achieve this here? Shouldn't that be the diff of the two last pushed commits? 2. Now, at some point develop gets merged into master. Actually same thing here. What is the settings here? Cheers!
b
What you say sounds reasonable: identify the previous commit on the branch and pass that. Have you tried something that isn't working?
t
I will try this one:
pants --changed-since=${{ github.event.before }} --changed-dependents=transitive --filter-target-type=docker_image list
👍 1