Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 3f4140f

Browse files
committed
D4T-1152 Add optional repository flag
D4T-1172 Add release_notes url to deploy Use v4 setup script, and update version to v4 Document delete option -- no code change necc
1 parent 64d19e7 commit 3f4140f

2 files changed

Lines changed: 41 additions & 16 deletions

File tree

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Solsta Create Action for GitHub
1+
# Solsta Create, Update or Delete (CRUD) Action for GitHub
22

3-
This project is a GitHub Action that uses Solid State Networks tools and services to create or modify Solsta products, environments, or repositories.
3+
This project is a GitHub Action that uses Solid State Networks tools and services to create, delete, or modify Solsta products, environments, repositories, or releases.
44

55
The action is compatible with Windows, Linux, and OSX runners. Windows self-hosted runners require git-bash (https://git-scm.com/) in the %PATH%.
66

@@ -10,15 +10,18 @@ The action is compatible with Windows, Linux, and OSX runners. Windows self-hos
1010
* **solsta_client_secret:** Secret Key to authenticate usage of Solid State Networks console tools
1111
* **console_version:** Version of Solsta Console Tools to use
1212
* **scripts_version:** Version of Solsta Deploy Scripts to use
13-
* **action_type:** Either create, or update
14-
* **object_type:** Either product, repository, or environment to create/update
15-
* **target_product:** Target product to create/update (case-sensitive)
16-
* **target_environment:** Target environment create/update to(case-sensitive)
17-
* **target_repository:** Target repository create/update to (case-sensitive)
13+
* **action_type:** Either create, delete, or update
14+
* **object_type:** Either product, repository, environment, or release to create/update/delete
15+
* **target_product:** Target product to create/update/delete (case-sensitive)
16+
* **target_environment:** Target environment to create/update/delete (case-sensitive)
17+
* **target_repository:** Target repository to create/update/delete (case-sensitive)
18+
* **target_release:** Target release to create/update/delete (case-sensitive)
1819
* **description** Friendly description of the modified object
1920
* **publish_location:** Environment publish location URI
2021
* **source_location:** Environment source location URI
2122
* **update_path_count:** Environment update path count number
23+
* **optional:** Whether the target repository is optional (true/false)
24+
* **notes_location:** Release release notes location URL
2225

2326
## Using
2427

@@ -27,10 +30,10 @@ Here is an example YAML Fragment in the steps section of a build:
2730
```yaml
2831
steps:
2932
- name: Create Object Configuration
30-
uses: snxd/deploy-github-create-action@v3
33+
uses: snxd/deploy-github-create-action@v4
3134
with:
32-
console_version: '6.1.2.84'
33-
scripts_version: '3.8.2'
35+
console_version: '7.2.49'
36+
scripts_version: '3.10.0'
3437
solsta_client_id: ${{ secrets.SOLSTA_CLIENT_ID }}
3538
solsta_client_secret: ${{ secrets.SOLSTA_CLIENT_SECRET }}
3639
action_type: create

action.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,24 @@ inputs:
1818
required: true
1919
default: "3.7.31"
2020
action_type:
21-
description: Either create, or update
21+
description: Either create, update, or delete
2222
default: 'create'
2323
required: true
2424
object_type:
25-
description: Either product, repository, or environment to create/update
25+
description: Either product, repository, environment, or release
2626
default: 'product'
2727
required: true
2828
target_product:
29-
description: Target product to create/update (case-sensitive)
29+
description: Target product to create/update/delete (case-sensitive)
3030
required: true
3131
target_environment:
32-
description: Target environment create/update to(case-sensitive)
32+
description: Target environment to create/update/delete (case-sensitive)
3333
required: false
3434
target_repository:
35-
description: Target repository create/update to (case-sensitive)
35+
description: Target repository to create/update/delete (case-sensitive)
36+
required: false
37+
target_release:
38+
description: Target release to create/update/delete (case-sensitive)
3639
required: false
3740
description:
3841
description: Friendly description of the modified object
@@ -46,6 +49,12 @@ inputs:
4649
update_path_count:
4750
description: Environment update path count number
4851
required: false
52+
notes_location:
53+
description: Release release notes location URL
54+
required: false
55+
optional:
56+
description: Whether the target repository is optional (true/false)
57+
required: false
4958

5059
outputs:
5160
result:
@@ -55,7 +64,7 @@ runs:
5564
using: 'composite'
5665
steps:
5766
- name: Solsta setup
58-
uses: snxd/deploy-github-setup-action@v3
67+
uses: snxd/deploy-github-setup-action@v4
5968
with:
6069
solsta_client_id: ${{ inputs.solsta_client_id }}
6170
solsta_client_secret: ${{ inputs.solsta_client_secret }}
@@ -101,6 +110,19 @@ runs:
101110
if [ ! "${{ inputs.description }}" = "" ]; then
102111
SOLSTA_EXTRA+="--description=\"${{ inputs.description }}\" "
103112
fi
113+
if [ ! "${{ inputs.optional }}" = "" ]; then
114+
SOLSTA_EXTRA+="--optional=\"${{ inputs.optional }}\" "
115+
fi
116+
fi
117+
if [ "$type_var" = "rel" ] || [ "$type_var" = "release" ]; then
118+
SOLSTA_EXTRA+="--object=release "
119+
SOLSTA_EXTRA+="--product_name=\"${{ inputs.target_product }}\" "
120+
SOLSTA_EXTRA+="--env_name=\"${{ inputs.target_environment }}\" "
121+
SOLSTA_EXTRA+="--repository_name=\"${{ inputs.target_repository }}\" "
122+
SOLSTA_EXTRA+="--release_id=\"${{ inputs.target_release }}\" "
123+
if [ ! "${{ inputs.notes_location }}" = "" ]; then
124+
SOLSTA_EXTRA+="--notes_location=\"${{ inputs.notes_location }}\" "
125+
fi
104126
fi
105127
# Run the script that creates the objects
106128
eval "python manifest.py --debug_network --console_credentials=client_credentials.json --console_directory=solsta_console/${{ inputs.console_version }}/console/ --task=${{ inputs.action_type }} $SOLSTA_EXTRA"

0 commit comments

Comments
 (0)