-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
65 lines (65 loc) · 2.3 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
56
57
58
59
60
61
62
63
64
65
name: 'move-crds-action'
description: |
A GitHub Action for moving Custom Resource Definitions (CRDs) between repositories. This
action handles copying CRD files from a source location to a target repository and can
create or update pull requests to manage these changes.
author: 'registry-operator authors'
inputs:
targetRepository:
description: |
The target repository in which to move the CRD files. The format should be
"owner/repo" (e.g., "myuser/myrepo").
required: true
targetChart:
description: |
The name of the target chart in the target repository where the CRDs should be added
or updated.
required: true
targetChartVersion:
description: |
The version of the target chart in the target repository. The CRDs will be added to
the chart at this version.
required: true
files:
description: |
A glob pattern to specify the CRD files to be moved. The pattern should match the
files to be copied from the source location to the target repository.
required: true
apiToken:
description: |
The GitHub API token for authentication and API access. By default, uses the
GITHUB_TOKEN secret provided by the GitHub workflow context.
required: true
title:
description: |
The title for the pull request when copying CRDs to the target repository. This
title will be used for the PR creation or update process.
required: false
default: 'chore(crds): copied CRDs'
commitMessage:
description: |
The commit message to use when copying CRDs to the target repository. This message
will be used when creating the commit in the target repository.
required: false
default: 'chore(crds): copied CRDs'
author:
description: |
The name of the author to use when creating the pull request. If not provided, the
default GitHub Actions bot will be used.
required: false
default: 'actions'
runs:
using: 'composite'
steps:
- shell: bash
env:
GH_TOKEN: ${{ inputs.apiToken }}
run: |
./run.sh \
'${{ inputs.targetRepository }}' \
'${{ inputs.targetChart }}' \
'${{ inputs.targetChartVersion }}' \
'${{ inputs.files }}' \
'${{ inputs.commitMessage }}' \
'${{ inputs.title }}' \
'${{ inputs.author }}'