From b6ee0e5c195a994be01d549fc19d728ad53aee08 Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Thu, 15 Sep 2022 23:47:23 +0100 Subject: [PATCH] Test using composite action --- action.yml | 5 +++-- entrypoint.sh | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 815415f..c532e21 100644 --- a/action.yml +++ b/action.yml @@ -50,9 +50,10 @@ inputs: required: false runs: - using: docker - image: Dockerfile + using: composite args: + - run: entrypoint.sh ${{ inputs.source-before-directory }} ${{ inputs.source-directory }} ${{ inputs.destination-github-username }} ${{ inputs.destination-repository-name }} ${{ inputs.github-server }} ${{ inputs.user-email }} ${{ inputs.user-name }} ${{ inputs.destination-repository-username }} ${{ inputs.target-branch }} ${{ inputs.commit-message }} ${{ inputs.target-directory }} + shell: sh - '${{ inputs.source-before-directory }}' - '${{ inputs.source-directory }}' - '${{ inputs.destination-github-username }}' diff --git a/entrypoint.sh b/entrypoint.sh index e7a3a28..83a61f1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,5 @@ #!/bin/sh -l -set -x set -e # if a command fails it stops the execution set -u # script fails if trying to access to an undefined variable