mirror of
https://github.com/canastro/copy-action.git
synced 2024-12-27 19:45:02 +08:00
testing testing
This commit is contained in:
parent
4ba14491aa
commit
d30ddef0c0
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -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"
|
||||
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user