Skip to content

Commit 5b35728

Browse files
updated workflow to not fail when nothing to push and fixed escaped characters in model docs
1 parent 44cb76d commit 5b35728

File tree

562 files changed

+6800
-12458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

562 files changed

+6800
-12458
lines changed

.github/workflows/push_sdk_docs_to_dev_portal.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Install rsync
3030
run: |
3131
sudo apt install rsync grsync
32+
3233
- name: Sync files between folders
3334
run: |
3435
CURRENT_V3_CODE_EXAMPLES_PATH="powershell-sdk/PSSailpoint/v3/docs/Examples/code_examples_overlay.yaml"
@@ -38,16 +39,13 @@ jobs:
3839
CURRENT_V3_SPEC_PATH_MODELS="powershell-sdk/PSSailpoint/v3/docs/Models"
3940
NEW_V3_API_SPEC_PATH_MODELS="developer-community/docs/tools/sdk/powershell/Reference/V3"
4041
41-
42-
4342
CURRENT_BETA_CODE_EXAMPLES_PATH="powershell-sdk/PSSailpoint/beta/docs/Examples/code_examples_overlay.yaml"
4443
NEW_BETA_CODE_EXAMPLES_PATH="developer-community/static/code-examples/beta"
4544
CURRENT_BETA_SPEC_PATH_METHODS="powershell-sdk/PSSailpoint/beta/docs/Methods"
4645
NEW_BETA_API_SPEC_PATH_METHODS="developer-community/docs/tools/sdk/powershell/Reference/Beta"
4746
CURRENT_BETA_SPEC_PATH_MODELS="powershell-sdk/PSSailpoint/beta/docs/Models"
4847
NEW_BETA_API_SPEC_PATH_MODELS="developer-community/docs/tools/sdk/powershell/Reference/Beta"
4948
50-
5149
CURRENT_V2024_CODE_EXAMPLES_PATH="powershell-sdk/PSSailpoint/v2024/docs/Examples/code_examples_overlay.yaml"
5250
NEW_V2024_CODE_EXAMPLES_PATH="developer-community/static/code-examples/v2024"
5351
CURRENT_V2024_SPEC_PATH_METHODS="powershell-sdk/PSSailpoint/v2024/docs/Methods"
@@ -64,15 +62,22 @@ jobs:
6462
rsync -cav --delete $CURRENT_V3_CODE_EXAMPLES_PATH $NEW_V3_CODE_EXAMPLES_PATH
6563
rsync -cav --delete $CURRENT_BETA_CODE_EXAMPLES_PATH $NEW_BETA_CODE_EXAMPLES_PATH
6664
rsync -cav --delete $CURRENT_V2024_CODE_EXAMPLES_PATH $NEW_V2024_CODE_EXAMPLES_PATH
65+
66+
- name: Check for changes and commit if any
67+
run: |
6768
cd developer-community
6869
git status
69-
git config --unset-all http.https://github.com/.extraheader
70-
git config --local user.email "[email protected]"
71-
git config --local user.name "developer-relations-sp"
72-
git add .
73-
git commit -m "Update to powershell SDK docs: ${{ github.run_id }}"
74-
git status
75-
git remote set-url origin https://${{secrets.DEVREL_SERVICE_TOKEN}}@github.com/sailpoint-oss/developer.sailpoint.com.git
76-
77-
git remote -v
78-
git push
70+
if git diff --exit-code; then
71+
echo "No changes to commit."
72+
exit 0
73+
else
74+
git config --unset-all http.https://github.com/.extraheader
75+
git config --local user.email "[email protected]"
76+
git config --local user.name "developer-relations-sp"
77+
git add .
78+
git commit -m "Update to powershell SDK docs: ${{ github.run_id }}"
79+
git status
80+
git remote set-url origin https://${{secrets.DEVREL_SERVICE_TOKEN}}@github.com/sailpoint-oss/developer.sailpoint.com.git
81+
git remote -v
82+
git push
83+
fi

PSSailpoint/beta/docs/Examples/code_examples_overlay.yaml

Lines changed: 1521 additions & 1521 deletions
Large diffs are not rendered by default.

PSSailpoint/beta/docs/Models/AccessCriteria.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
2424
- Prepare the resource
2525
```powershell
2626
$AccessCriteria = Initialize-PSSailpoint.BetaAccessCriteria -Name money-in `
27-
-CriteriaList [{type=ENTITLEMENT, id=2c9180866166b5b0016167c32ef31a66, name=Administrator}, {type=ENTITLEMENT, id=2c9180866166b5b0016167c32ef31a67, name=Administrator}]
27+
-CriteriaList [{type=ENTITLEMENT, id=2c9180866166b5b0016167c32ef31a66, name=Administrator}, {type=ENTITLEMENT, id=2c9180866166b5b0016167c32ef31a67, name=Administrator}]
2828
```
2929

3030
- Convert the resource to JSON

PSSailpoint/beta/docs/Models/AccessProfileUpdateItem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ $AccessProfileUpdateItem = Initialize-PSSailpoint.BetaAccessProfileUpdateItem -
2929
-Requestable false `
3030
-Status 201 `
3131
-Description
32-
> Access profile is updated successfully.
32+
> Access profile is updated successfully.
3333
34-
> Referenced Access profile with Id "2c7180a46faadee4016fb4e018c20642" was not found.
34+
> Referenced Access profile with Id "2c7180a46faadee4016fb4e018c20642" was not found.
3535
3636
```
3737

PSSailpoint/beta/docs/Models/AccessRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
2828
$AccessRequest = Initialize-PSSailpoint.BetaAccessRequest -RequestedFor null `
2929
-RequestType null `
3030
-RequestedItems null `
31-
-ClientMetadata {requestedAppId=2c91808f7892918f0178b78da4a305a1, requestedAppName=test-app}
31+
-ClientMetadata {requestedAppId=2c91808f7892918f0178b78da4a305a1, requestedAppName=test-app}
3232
```
3333

3434
- Convert the resource to JSON

PSSailpoint/beta/docs/Models/AccessRequestItem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Name | Type | Description | Notes
2929
$AccessRequestItem = Initialize-PSSailpoint.BetaAccessRequestItem -Type ACCESS_PROFILE `
3030
-Id 2c9180835d2e5168015d32f890ca1581 `
3131
-Comment Requesting access profile for John Doe `
32-
-ClientMetadata {requestedAppName=test-app, requestedAppId=2c91808f7892918f0178b78da4a305a1} `
32+
-ClientMetadata {requestedAppName=test-app, requestedAppId=2c91808f7892918f0178b78da4a305a1} `
3333
-RemoveDate 2020-07-11T21:23:15Z
3434
```
3535

PSSailpoint/beta/docs/Models/AccessRequestItemResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $AccessRequestItemResponse = Initialize-PSSailpoint.BetaAccessRequestItemRespons
3636
-Description The role descrition `
3737
-SourceId 8a80828f643d484f01643e14202e206f `
3838
-SourceName Source1 `
39-
-ApprovalInfos [{name=John Snow, id=8a80828f643d484f01643e14202e2000, status=Approved}]
39+
-ApprovalInfos [{name=John Snow, id=8a80828f643d484f01643e14202e2000, status=Approved}]
4040
```
4141

4242
- Convert the resource to JSON

PSSailpoint/beta/docs/Models/AccessRequestPostApprovalRequestedItemsStatusInner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $AccessRequestPostApprovalRequestedItemsStatusInner = Initialize-PSSailpoint.Bet
3535
-Type ACCESS_PROFILE `
3636
-Operation Add `
3737
-Comment William needs this access to do his job. `
38-
-ClientMetadata {applicationName=My application} `
38+
-ClientMetadata {applicationName=My application} `
3939
-ApprovalInfo null
4040
```
4141

PSSailpoint/beta/docs/Models/AccessRequestRecommendationItemDetail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $AccessRequestRecommendationItemDetail = Initialize-PSSailpoint.BetaAccessReques
3434
-Requested true `
3535
-Viewed true `
3636
-Messages null `
37-
-TranslationMessages [{key=recommender-api.V2_WEIGHT_FEATURE_PRODUCT_INTERPRETATION_HIGH, values=[75, department]}]
37+
-TranslationMessages [{key=recommender-api.V2_WEIGHT_FEATURE_PRODUCT_INTERPRETATION_HIGH, values=[75, department]}]
3838
```
3939

4040
- Convert the resource to JSON

PSSailpoint/beta/docs/Models/AccessRequestResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Name | Type | Description | Notes
2323

2424
- Prepare the resource
2525
```powershell
26-
$AccessRequestResponse = Initialize-PSSailpoint.BetaAccessRequestResponse -NewRequests [{requestedFor=899fd612ecfc4cf3bf48f14d0afdef89, requestedItemsDetails=[{type=ENTITLEMENT, id=779c6fd7171540bba1184e5946112c28}], attributesHash=-1928438224, accessRequestIds=[5d3118c518a44ec7805450d53479ccdb]}] `
27-
-ExistingRequests [{requestedFor=899fd612ecfc4cf3bf48f14d0afdef89, requestedItemsDetails=[{type=ROLE, id=779c6fd7171540bbc1184e5946112c28}], attributesHash=2843118224, accessRequestIds=[5d3118c518a44ec7805450d53479ccdc]}]
26+
$AccessRequestResponse = Initialize-PSSailpoint.BetaAccessRequestResponse -NewRequests [{requestedFor=899fd612ecfc4cf3bf48f14d0afdef89, requestedItemsDetails=[{type=ENTITLEMENT, id=779c6fd7171540bba1184e5946112c28}], attributesHash=-1928438224, accessRequestIds=[5d3118c518a44ec7805450d53479ccdb]}] `
27+
-ExistingRequests [{requestedFor=899fd612ecfc4cf3bf48f14d0afdef89, requestedItemsDetails=[{type=ROLE, id=779c6fd7171540bbc1184e5946112c28}], attributesHash=2843118224, accessRequestIds=[5d3118c518a44ec7805450d53479ccdc]}]
2828
```
2929

3030
- Convert the resource to JSON

0 commit comments

Comments
 (0)