2021-07-31 23:45:07 +07:00
|
|
|
#!/bin/bash
|
2021-08-01 00:27:16 +07:00
|
|
|
git clone https://github.com/minoplhy/filters-maker /filters-maker
|
2021-08-01 10:59:58 +07:00
|
|
|
git clone https://x-access-token:$API_TOKEN_GITHUB@github.com/$INPUT_DESTINATION_UNAME/$INPUT_DESTINATION_REPO.git /repros
|
2021-08-27 12:34:04 +07:00
|
|
|
mkdir /reprwiki
|
2021-08-06 19:40:54 -07:00
|
|
|
mkdir /reprwiki/$INPUT_DESTINATION_FOLDER/
|
2021-08-06 19:38:14 -07:00
|
|
|
mkdir /reprwiki/$INPUT_DESTINATION_FOLDER/$INPUT_DESTINATION_VERSION
|
2021-08-01 10:25:54 +07:00
|
|
|
pip3 install -r /filters-maker/requirements.txt
|
2021-08-06 19:35:04 -07:00
|
|
|
cd /reprwiki
|
2021-08-02 07:12:45 -07:00
|
|
|
python3 /repros/$INPUT_ACTION_FILE
|
2021-08-17 14:14:06 +07:00
|
|
|
cd /repros
|
2021-08-27 13:21:03 +07:00
|
|
|
TIMEDATE=`date`
|
2021-08-17 14:14:06 +07:00
|
|
|
git config --local user.name $INPUT_GIT_NAME
|
|
|
|
git config --local user.email $INPUT_GIT_EMAIL
|
|
|
|
git add .
|
2021-08-21 19:36:45 -07:00
|
|
|
git commit -m "Schedule Building : $TIMEDATE"
|
2021-08-20 23:51:55 -07:00
|
|
|
git push -u origin $INPUT_BRANCH_VERSION
|
2021-08-21 08:57:28 -07:00
|
|
|
if [ -f "/repros/$INPUT_SUB_ACTION_LOCATION" ]; then
|
|
|
|
echo $API_TOKEN_GITHUB > token.txt
|
|
|
|
gh auth login --with-token < token.txt
|
|
|
|
rm token.txt
|
|
|
|
python3 /repros/$INPUT_SUB_ACTION_LOCATION
|
2021-08-21 00:28:45 -07:00
|
|
|
echo "Code Completed!"
|
2021-08-27 13:05:17 +07:00
|
|
|
gh release delete latest -y
|
2021-08-27 13:40:02 +07:00
|
|
|
git tag -d latest
|
|
|
|
git push origin :latest
|
2021-08-21 19:58:32 -07:00
|
|
|
gh release create latest -F /repros/Resources/Releases.md /gh-releases/* -t "FILTERS IN RELEASES"
|
2021-08-20 23:51:55 -07:00
|
|
|
fi
|