You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
895 B
YAML

name: Update benches (release)
on:
push:
tags:
- "v*"
jobs:
request-bench:
name: Add request for updating bench
runs-on: ubuntu-latest
steps:
- name: Clone perf repo
run: git clone https://github.com/skytable/perf.git
- name: Configure git
run: |
git config --global user.name "Glydr"
git config --global user.email "${{ secrets.GLYDR_MAIL }}"
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Add request and push
env:
REL: ${{ env.RELEASE_VERSION }}
run: |
cd perf
printf "\ntarget/release/skyreport update release $REL" >> requests.txt
git add .
git commit -m "Add update request for release ``$REL``"
git push https://glydr:${{ secrets.GLYDR }}@github.com/skytable/perf.git --all