🎉 create repo

This commit is contained in:
canastro 2020-01-04 08:27:56 +00:00
commit 338436d855
7 changed files with 61 additions and 0 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

13
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: copy files
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: copy file
uses: canastro/copy-file-action@master
with:
source: "tests/a.txt"
target: "test-a.txt"

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM debian:stable-slim
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

20
README.md Normal file
View File

@ -0,0 +1,20 @@
## Usage
copy files and artifacts via SSH as blow.
```yaml
name: copy files
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: copy file
uses: canastro/copy-file-action@master
with:
source: "tests/a.txt"
target: "test-a.txt"
```

14
action.yml Normal file
View File

@ -0,0 +1,14 @@
name: 'Copy file'
description: 'Copy local files'
author: 'Ricardo Canastro'
inputs:
source:
description: 'Source file'
target:
description: 'Target file'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'copy'
color: 'green'

1
entrypoint.sh Normal file
View File

@ -0,0 +1 @@
cp $SOURCE $TARGET

1
tests/a.txt Normal file
View File

@ -0,0 +1 @@
Dummy file to test action