thousands-plumber-33255
09/07/2023, 12:31 PM--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!broad-processor-92400
09/08/2023, 12:07 AMthousands-plumber-33255
09/08/2023, 2:04 PMpants --changed-since=${{ github.event.before }} --changed-dependents=transitive --filter-target-type=docker_image list