50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
# Copyright 2026 Schwarz Digits Cloud GmbH & Co. KG
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
name: Sync STACKIT Docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "examples/**/stackit.docs.yaml"
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
sync-docs:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: Checkout professional-services
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install dependencies
|
|
run: pip install pyyaml
|
|
|
|
- name: Authenticate GitHub CLI
|
|
run: gh auth login --with-token <<< "${{ secrets.STACKIT_DOCS_TOKEN }}"
|
|
|
|
- name: Run docs sync
|
|
env:
|
|
STACKIT_DOCS_TOKEN: ${{ secrets.STACKIT_DOCS_TOKEN }}
|
|
STACKIT_DOCS_REPO: stackitcloud/docs-content
|
|
run: bash ci-scripts/sync-stackit-docs.sh
|