testing testing

This commit is contained in:
Piers Beckley 2022-08-23 15:13:40 +01:00
parent 4ba14491aa
commit d30ddef0c0
3 changed files with 27 additions and 6 deletions

View File

@ -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"

View File

@ -1,4 +1,25 @@
# !/bin/sh -l
#!/bin/bash
#!/bin/bash -l
cp "$1" "$2" "$3"
#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"

0
test Normal file
View File