grafana / xk6-disruptor

Extension for injecting faults into k6 tests
https://k6.io/docs/javascript-api/xk6-disruptor/
GNU Affero General Public License v3.0
91 stars 7 forks source link

ci: run dependency sync script periodically and open a PR for it #339

Closed roobre closed 1 year ago

roobre commented 1 year ago

Description

This PR introduces a CI job that runs hack/depsync every day, and creates (or updates if it exists) a PR with the changes it produces.

PR should only be created if the job produces any changes to the git repository.

An example of the PR that would be created can be found here: https://github.com/roobre/xk6-disruptor/pull/28

Unfortunately, this does not currently trigger the regular PR workflow that would unittest those changes. This is a deliberate limitation of GH actions, as they automatically-generated GITHUB_TOKENs they use do not trigger other workflows themselves.

As a workaround for this, we can simply close and then reopen the PR, which will trigger the usual CI jobs for it, which the PR description says as a reminder. As I don't foresee having to do this very often, I think this workaround is enough and less maintenance than the alternative of creating a GitHub applciation.

Checklist: