Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/push_sdk_docs_to_dev_portal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
repository: sailpoint-oss/developer.sailpoint.com
path: developer-community
ref: main
token: ${{ secrets.DEVREL_SERVICE_TOKEN }}
fetch-depth: 0

- name: Sync local to remote main
working-directory: developer-community
run: |
git fetch origin main
git reset --hard origin/main

- name: Install rsync
run: sudo apt update && sudo apt install -y rsync grsync
Expand Down Expand Up @@ -50,8 +58,8 @@ jobs:
rsync -av python-sdk/sailpoint/v2025/docs/Examples/python_code_examples_overlay.yaml developer-community/static/code-examples/v2025/

- name: Check for changes and commit if any
working-directory: developer-community
run: |
cd developer-community
if git diff --quiet; then
echo "No changes to commit."
exit 0
Expand All @@ -61,8 +69,7 @@ jobs:
git config --local user.name "developer-relations-sp"
git add .
git commit -m "Update python SDK docs: ${{ github.run_id }}"
git remote set-url origin https://${{ secrets.DEVREL_SERVICE_TOKEN }}@github.com/sailpoint-oss/developer.sailpoint.com.git
git push
git push origin main

publish-failure:
name: Notify on failure
Expand Down