Skip to content

Commit

Permalink
Support release-notes in create-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
divolgin committed Jan 10, 2025
1 parent b78431f commit 2ae7c79
Show file tree
Hide file tree
Showing 47 changed files with 92,919 additions and 27,862 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: replicated-actions-ci # from the Replicated QA team
chart: wordpress-${{ env.WORDPRESS_CHART_VERSION }}.tgz
promote-channel: test-channel
release-notes: release notes for 1.0.0-helm

- name: test create-release / kots-install
id: create-release-kots-install
Expand All @@ -49,3 +51,6 @@ jobs:
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
app-slug: replicated-actions-ci # from the Replicated QA team
yaml-dir: ./test/kots-install/yaml
promote-channel: test-channel
version: 1.0.0-kots
release-notes: release notes for 1.0.0-kots
816 changes: 450 additions & 366 deletions archive-channel/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archive-channel/dist/index.js.map

Large diffs are not rendered by default.

816 changes: 450 additions & 366 deletions archive-customer/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion archive-customer/dist/index.js.map

Large diffs are not rendered by default.

816 changes: 450 additions & 366 deletions create-cluster/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion create-cluster/dist/index.js.map

Large diffs are not rendered by default.

816 changes: 450 additions & 366 deletions create-customer/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion create-customer/dist/index.js.map

Large diffs are not rendered by default.

816 changes: 450 additions & 366 deletions create-object-store/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion create-object-store/dist/index.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions create-release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ chart["chart"]
yaml_dir["yaml-dir"]
promote_channel["promote-channel"]
version["version"]
release_notes["release-notes"]
channel_slug["channel-slug"]
release_sequence["release-sequence"]
app_slug ---> replicated_create_release
Expand All @@ -20,6 +21,7 @@ chart ---> replicated_create_release
yaml_dir ---> replicated_create_release
promote_channel ---> replicated_create_release
version ---> replicated_create_release
release_notes ---> replicated_create_release
replicated_create_release ---> channel_slug
replicated_create_release ---> release_sequence
```
Expand All @@ -30,8 +32,9 @@ replicated_create_release ---> release_sequence
| api-token | | True | API Token. |
| chart | | False | Path to the helm chart (One of `chart` or `yaml-dir` is required). |
| yaml-dir | | False | The directory containing multiple yamls for a Replicated release (One of `chart` or `yaml-dir` is required). |
| promote-channel | | False | Channel name or id to promote this release to. |
| version | | False | Release version |
| promote-channel | | False | Channel name or id to promote this release to. If not specified, the release will not be promoted. |
| version | | False | Release version. This will be ignored if `promote-channel` is not specified. |
| release-notes | | False | Release notes. This will be ignored if `promote-channel` is not specified. |

## Outputs
| Name | Description |
Expand Down
7 changes: 5 additions & 2 deletions create-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ inputs:
description: "The directory containing multiple yamls for a Replicated release (One of `chart` or `yaml-dir` is required)."
required: false
promote-channel:
description: "Channel name or id to promote this release to."
description: "Channel name or id to promote this release to. If not specified, the release will not be promoted."
required: false
version:
description: "Release version"
description: "Release version. This will be ignored if `promote-channel` is not specified."
required: false
release-notes:
description: "Release notes. This will be ignored if `promote-channel` is not specified."
required: false
outputs:
channel-slug: # slug of the channel
Expand Down
Loading

0 comments on commit 2ae7c79

Please sign in to comment.