async function getChangedFilesBetweenTags(
  client,
  owner,
  repo,
  baseTag,
  headTag,
) {
  const response = await client.rest.repos.compareCommits({
    owner,
    repo,
    base: baseTag,
    head: headTag,
  })

  return response.data.files.map(file => file.filename)
}
Get a list of files changed betwen two tags for a github repo

@param {object} client hydrated octokit ready to use for GitHub Actions
@param {string} owner repo owner
@param {string} repo repo name
@param {string} baseTag base tag
@param {string} headTag head tag
@returns {string[]} Array listing all changed files betwen the base tag and the head tag