vuln-list-update/push.sh

17 lines
210 B
Bash
Raw Normal View History

2019-04-30 07:02:09 +03:00
#!/bin/sh
DIR=$1
ADD=$2
MESSAGE=$3
cd $DIR
git add $2
git commit -m "$3"
ret=$?
if [ $ret = 0 ]; then
2020-12-17 18:05:35 +03:00
git push https://${GITHUB_TOKEN}@github.com/aquasecurity/vuln-list.git main
2019-04-30 07:02:09 +03:00
else
echo "skip push"
fi