From f31f8922c2ef17221f7ba82643d08128176fb089 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sun, 1 Aug 2021 09:47:44 +0700 Subject: [PATCH] Remove Dockerfile and use Bash instead --- Dockerfile | 8 -------- action.yml | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a5f6d8c..0000000 --- a/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -# Container image that runs your code -FROM debian - -# Copies your code file from your action repository to the filesystem path `/` of the container -COPY filters.sh /filters.sh -RUN apt-get update && apt-get install -y curl && apt-get install -y git -# Code file to execute when the docker container starts up (`entrypoint.sh`) -ENTRYPOINT ["/filters.sh"] diff --git a/action.yml b/action.yml index 0901945..238f7e7 100644 --- a/action.yml +++ b/action.yml @@ -25,12 +25,13 @@ inputs: required: true runs: - using: "docker" - image: "Dockerfile" - args: - - ${{ inputs.Destination_NAME }} - - ${{ inputs.Destination_REPO }} - - ${{ inputs.Destination_VERSION }} - - ${{ inputs.GIT_NAME }} - - ${{ inputs.GIT_EMAIL }} - - ${{ inputs.REPO_BRANCH }} + steps: + - run: ${{ github.action_path }}/filters.sh + shell: bash + args: + - ${{ inputs.Destination_NAME }} + - ${{ inputs.Destination_REPO }} + - ${{ inputs.Destination_VERSION }} + - ${{ inputs.GIT_NAME }} + - ${{ inputs.GIT_EMAIL }} + - ${{ inputs.REPO_BRANCH }}