mirror of
https://github.com/major/MySQLTuner-perl.git
synced 2024-09-21 07:47:08 +00:00
feat: try to auto commit result into repo
This commit is contained in:
parent
fa2cfe9a5f
commit
43fdb3680e
13
.github/workflows/exec.yml
vendored
13
.github/workflows/exec.yml
vendored
@ -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
4
build/build_rpm.sh
Executable file → Normal 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
0
build/clean.sh
Executable file → Normal file
0
build/deployOn
Executable file → Normal file
0
build/deployOn
Executable file → Normal file
0
mysqltuner.pl
Executable file → Normal file
0
mysqltuner.pl
Executable file → Normal file
0
vulnerabilities.csv
Executable file → Normal file
0
vulnerabilities.csv
Executable file → Normal file
Can't render this file because it is too large.
|
Loading…
Reference in New Issue
Block a user