diff --git a/.github/workflows/VersionCalPRComment.yml b/.github/workflows/VersionCalPRComment.yml index 1e340812e4c..0853415dad4 100644 --- a/.github/workflows/VersionCalPRComment.yml +++ b/.github/workflows/VersionCalPRComment.yml @@ -147,7 +147,8 @@ jobs: echo changed module: "${mod}" azdev extension add "${mod}" && azdev command-change meta-export "${mod}" --meta-output-path ./"$base_meta_path"/ && azdev extension remove "${mod}" done - git checkout "$diff_branch" + # some module, like confcom, will change local data files, like data/rules.rego, during installation, need to reset when checkout different branch + git checkout -f "$diff_branch" mkdir "$diff_meta_path" for mod in ${changed_module_list[@]} do