Skip to content

Commit

Permalink
retain update truth history file from *-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed May 23, 2024
1 parent 22e9ad3 commit 02b16a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/update_truth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,15 @@ jobs:
echo git merge -s ours origin/${branch_name}-ref
git merge -s ours origin/${branch_name}-ref
change_log_path=.github/update_truth_change_log.txt
# get truth change log from *-ref branch
cmd="git checkout origin/${branch_name}-ref -- ${change_log_path}"
echo $cmd
$cmd
# create or append to file to track truth data changes
# and ensure that PR merge into *-ref branch triggered testing workflow
change_log_path=.github/update_truth_change_log.txt
change_entry="[$(date +%Y%m%d_%H:%M:%S) ${branch_name}] ${{ github.event.inputs.pull_requests }} - ${{ github.event.inputs.change_summary }}"
echo "${change_entry}" >> ${change_log_path}
Expand Down

0 comments on commit 02b16a1

Please sign in to comment.