mirror of
https://github.com/canastro/copy-action.git
synced 2024-11-23 10:13:50 +08:00
25 lines
625 B
YAML
25 lines
625 B
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"
|
|
- name: copy file with args
|
|
uses: canastro/copy-file-action@master
|
|
with:
|
|
source: "tests/a.txt"
|
|
target: "test-a.txt"
|
|
flags: "-f"
|
|
- name: copy file with spaces
|
|
uses: canastro/copy-file-action@master
|
|
with:
|
|
source: "tests/path with spaces.txt"
|
|
target: "path-without-spaces.txt"
|
|
|