feat: try to auto commit result into repo

This commit is contained in:
Jean-Marie Renouard 2023-03-18 17:57:06 +01:00
parent fa2cfe9a5f
commit 43fdb3680e
6 changed files with 14 additions and 3 deletions

View File

@ -59,4 +59,15 @@ jobs:
# Runs a single command using the runners shell
- name: Run verbose mode with dumpdir result
run: sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=result
run: |
mkdir -p ./examples/github/result
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result --json | tee -a ./examples/github/result/result.json
# Runs a single command using the runners shell
- name: Commit example result to repo
run: |
git config --global user.name "Jean-Marie Renouard"
git config --global user.email "jmrenouard@gmail.com"
git add .
git commit -m "Commit example result"
git push

4
build/build_rpm.sh Executable file → Normal file
View File

@ -1,10 +1,10 @@
#!/bin/sh
BUILD_DIR=`dirname $(readlink -f $0)`
BUILD_DIR="$(dirname $(readlink -f "$0"))"
VERSION=$(grep -Ei 'my \$tunerversion' $BUILD_DIR/../mysqltuner.pl | grep = | cut -d\" -f2)
cd $BUILD_DIR
sh ./clean.sh
sh ./clean.sh
perl -pe "s/%VERSION%/$VERSION/g" mysqltuner.spec.tpl > mysqltuner.spec
mkdir -p $BUILD_DIR/mysqltuner-$VERSION

0
build/clean.sh Executable file → Normal file
View File

0
build/deployOn Executable file → Normal file
View File

0
mysqltuner.pl Executable file → Normal file
View File

0
vulnerabilities.csv Executable file → Normal file
View File

Can't render this file because it is too large.