Skip to content

Commit cc4d6d7

Browse files
committed
commit new results to new branch
1 parent d3e2b54 commit cc4d6d7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/RunBenchmark.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,19 @@ jobs:
8787
if [ $ncores -eq 128 ]; then export MACHINE_TYPE="c6id.metal"; fi
8888
MACHINE_TYPE=$MACHINE_TYPE ./_run/run_small_medium.sh
8989
90+
- name: name new branch
91+
shell: bash
92+
run: |
93+
echo "new_branch_name=results-`date +%Y-%m-%d-%Hh%Mm`" >> $GITHUB_ENV
94+
echo ${{ env.new_branch_name }}
9095
9196
- name: Commit updates
9297
shell: bash
9398
working-directory: /var/lib/mount/db-benchmark-metal
9499
run: |
95100
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
96101
git config --local user.name "github-actions[bot]"
102+
git checkout -b ${{ env.new_branch_name }}
97103
git add time.csv logs.csv **/VERSION
98104
git add run.conf
99105
git commit -m "new_results"
@@ -107,10 +113,7 @@ jobs:
107113
echo "guarantee not empty dir" > out/guarantee.txt
108114
zip -r out-dir.zip out/
109115
110-
- name: name new branch
111-
shell: bash
112-
run: |
113-
echo "new_branch_name=results-`date +%Y-%m-%d-%Hh%Mm`" >> $GITHUB_ENV
116+
114117
115118
- uses: actions/upload-artifact@v4
116119
if: always()

0 commit comments

Comments
 (0)