From d30ddef0c0ee737cf8369724efdfe3ec82cff218 Mon Sep 17 00:00:00 2001 From: Piers Beckley Date: Tue, 23 Aug 2022 15:13:40 +0100 Subject: [PATCH] testing testing --- .github/workflows/main.yml | 6 +++--- entrypoint.sh | 27 ++++++++++++++++++++++++--- test | 0 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 test diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 03adf3d..adaa140 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,18 +7,18 @@ jobs: steps: - uses: actions/checkout@master - name: copy file - uses: canastro/copy-file-action@master + uses: piersb/copy-file-action@master with: source: "tests/a.txt" target: "test-a.txt" - name: copy file with args - uses: canastro/copy-file-action@master + uses: piersb/copy-file-action@master with: source: "tests/a.txt" target: "test-a.txt" flags: "-f" - name: copy file with args - uses: canastro/copy-file-action@master + uses: piersb/copy-file-action@master with: source: "tests/path with spaces.txt" target: "path-without-spaces.txt" diff --git a/entrypoint.sh b/entrypoint.sh index df7e799..5f647bc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,25 @@ -# !/bin/sh -l -#!/bin/bash +#!/bin/bash -l -cp "$1" "$2" "$3" \ No newline at end of file +#bash -c "$(cp ' %q' "$@")" + +echo "hello" +>&2 echo "test debug message" + +time=$(date) +echo "::set-output name=time::$time" + + +ENV ARG_1=$1 +ENV ARG_2=$2 +ENV ARG_3=$3 + + +echo $1 >> /tmp/logs.txt +echo $2 >> /tmp/logs.txt +echo $3 >> /tmp/logs.txt + +echo >> /tmp/logs.txt "Receiving " $# " arguments" + +echo "trying to run cp " "$2 " "$3" + +#cp "$2" "$3" \ No newline at end of file diff --git a/test b/test new file mode 100644 index 0000000..e69de29