-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
55 lines (55 loc) · 1.69 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 'API specification retriever'
description: 'Fetch API specifications from GitHub'
inputs:
source-api-key:
description: 'GitHub API key for source repository'
required: true
source-owner:
description: 'Source repository owner (e.g. org)'
required: true
source-repo:
description: 'Source repository name'
required: true
dest-api-key:
description: 'GitHub API key for destination repository'
required: true
dest-owner:
description: 'Destination repository owner (e.g. org)'
required: true
dest-repo:
description: 'Destination repository name'
required: true
temp-dir:
description: 'Temporary directory to store release asset files'
required: false
default: './files'
body-replace-regex:
description: 'Regular expression to replace in release body'
required: false
body-replace-with:
description: 'Replacement string for regular expression'
required: false
release-name:
description: 'Name of the release to copy'
required: true
default: ''
include-assets:
description: 'List of assets to copy'
required: false
default: '.*'
outputs: {}
runs:
using: 'docker'
image: 'Dockerfile'
env:
SOURCE_API_KEY: "${{ inputs.source-api-key }}"
SOURCE_OWNER: "${{ inputs.source-owner }}"
SOURCE_REPO: "${{ inputs.source-repo }}"
DEST_API_KEY: "${{ inputs.dest-api-key }}"
DEST_OWNER: "${{ inputs.dest-owner }}"
DEST_REPO: "${{ inputs.dest-repo }}"
TEMP_DIR: "${{ inputs.temp-dir }}"
INCLUDE_ASSETS: "${{ inputs.include-assets }}"
BODY_REPLACE_REGEX: "${{ inputs.body-replace-regex }}"
BODY_REPLACE_WITH: "${{ inputs.body-replace-with }}"
args: [ "${{ inputs.release-name }}" ]