Skip to content

Commit

Permalink
discard data changes when checkout diff branch (#8396)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyW authored Jan 6, 2025
1 parent 9cbac44 commit ff3cc7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/VersionCalPRComment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff3cc7b

Please sign in to comment.