diff --git a/action.yml b/action.yml index a35923e..81d2175 100644 --- a/action.yml +++ b/action.yml @@ -14,6 +14,9 @@ inputs: Destination_REPO: description: "repo name" required: true + Destination_FOLDER: + description: "folder" + required: true Destination_VERSION: description: "version" required: true @@ -34,6 +37,7 @@ runs: - ${{ inputs.Destination_NAME }} - ${{ inputs.Destination_UNAME }} - ${{ inputs.Destination_REPO }} + - ${{ inputs.Destination_FOLDER }} - ${{ inputs.Destination_VERSION }} - ${{ inputs.GIT_NAME }} - ${{ inputs.GIT_EMAIL }} diff --git a/filters.sh b/filters.sh index 7d89a28..ff9688f 100644 --- a/filters.sh +++ b/filters.sh @@ -1,7 +1,7 @@ #!/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/Private-Build/$INPUT_DESTINATION_VERSION +mkdir /repros/$INPUT_DESTINATION_FOLDER/$INPUT_DESTINATION_VERSION pip3 install -r /filters-maker/requirements.txt python3 /filters-maker/crawler.py /filters-maker/input/domains.txt python3 /filters-maker/maker-rpz.py /filters-maker/input/excluded.txt /filters-maker/input/domains.txt /repros/Private-Build/$INPUT_DESTINATION_VERSION/rpz.txt