From 917b475e365b7da45013c7c13bd991cd6dbee50e Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sun, 1 Aug 2021 11:24:39 +0700 Subject: [PATCH] Fixing Attempt #13? --- action.yml | 4 ++++ filters.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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