mirror of
https://github.com/canastro/copy-action.git
synced 2024-11-23 11:43:50 +08:00
🎉 create repo
This commit is contained in:
commit
338436d855
8
.editorconfig
Normal file
8
.editorconfig
Normal 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
13
.github/workflows/main.yml
vendored
Normal 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
4
Dockerfile
Normal 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
20
README.md
Normal 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
14
action.yml
Normal 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
1
entrypoint.sh
Normal file
@ -0,0 +1 @@
|
||||
cp $SOURCE $TARGET
|
1
tests/a.txt
Normal file
1
tests/a.txt
Normal file
@ -0,0 +1 @@
|
||||
Dummy file to test action
|
Loading…
Reference in New Issue
Block a user