This commit is contained in:
minoplhy 2021-08-07 11:06:39 +07:00
commit bb59f4c232
2 changed files with 8 additions and 6 deletions

View File

@ -21,16 +21,16 @@ inputs:
description: "Version on Destination etc. Pro , ucate , Hell"
required: true
ACTION_FILE:
description: 'action script for example look at action.example.py I'm calling this the Really Action Script'
description: "action script for example look at action.example.py I'm calling this the Really Action Script"
required: true
GIT_NAME:
description: 'Git Username'
description: "Git Username"
required: true
GIT_EMAIL:
description: 'Git E-mail'
description: "Git E-mail"
required: true
REPO_BRANCH:
description: 'Git Branch'
description: "Git Branch"
required: true
runs:

View File

@ -1,9 +1,11 @@
#!/bin/bash
git clone https://github.com/minoplhy/filters-maker /filters-maker
git clone https://x-access-token:$API_TOKEN_GITHUB@github.com/$INPUT_DESTINATION_UNAME/$INPUT_DESTINATION_REPO.git /repros
mkdir /repros/$INPUT_DESTINATION_FOLDER/$INPUT_DESTINATION_VERSION
git clone https://x-access-token:$API_TOKEN_GITHUB@github.com/$INPUT_DESTINATION_UNAME/$INPUT_DESTINATION_REPO.wiki.git /reprwiki
mkdir /reprwiki/$INPUT_DESTINATION_FOLDER/
mkdir /reprwiki/$INPUT_DESTINATION_FOLDER/$INPUT_DESTINATION_VERSION
pip3 install -r /filters-maker/requirements.txt
cd /repros
cd /reprwiki
python3 /repros/$INPUT_ACTION_FILE
git config --local user.name $INPUT_GIT_NAME
git config --local user.email $INPUT_GIT_EMAIL