-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
34 lines (32 loc) · 946 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Checkout repositotory
description: Checkout repository to specified dir (even if destination dir is not empty)
inputs:
repository:
description: "Repository to checkout"
required: true
dest-path:
description: "Move repository content to specified path"
required: true
token:
description: "Personal access token"
required: false
default: ""
tmp-path:
description: "Temporary checkout dir"
default: tmp-shared-actions
required: false
runs:
using: composite
steps:
- name: Checkout shared actions repo
uses: actions/checkout@v2
with:
repository: ${{ inputs.repository }}
path: ${{ inputs.tmp-path }}
token: ${{ inputs.token }}
- name: Move repository content to specified dir
shell: bash
run: |
mkdir -p ${{ inputs.dest-path }}
mv ${{ inputs.tmp-path }}/* ${{ inputs.dest-path }}
rm -Rf ${{ inputs.tmp-path }}