Skip to content

feat(skill sandbox):support 30-minute skill execution (#869) #6

feat(skill sandbox):support 30-minute skill execution (#869)

feat(skill sandbox):support 30-minute skill execution (#869) #6

# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
#
# 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: Push Doc to Archive
on:
push:
tags:
- '*'
permissions:
contents: read
jobs:
trigger-docs-archive:
if: github.event.deleted == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Trigger docs archive
env:
DOCS_AUTOGEN_URL: ${{ vars.DOCS_AUTOGEN_URL }}
DOCS_AUTOGEN_TOKEN: ${{ secrets.DOCS_AUTOGEN_TOKEN }}
run: |
set -euo pipefail
if [ -z "$DOCS_AUTOGEN_URL" ]; then
echo "DOCS_AUTOGEN_URL repository variable is not configured." >&2
exit 1
fi
if [ -z "$DOCS_AUTOGEN_TOKEN" ]; then
echo "DOCS_AUTOGEN_TOKEN repository secret is not configured." >&2
exit 1
fi
tag_name="${GITHUB_REF#refs/tags/}"
current_commit="$(git rev-list -n 1 "$tag_name")"
previous_tag="$(git describe --tags --abbrev=0 --exclude "$tag_name" "$current_commit" 2>/dev/null || true)"
command="DOCS_REPO_URL=git@github.com:yaozheng-fang/docs.git CODE_REPO_PATH=git@github.com:volcengine/veadk-python.git DOCS_PROJECT=veadk RELEASE_TAG=${tag_name} PREVIOUS_TAG=${previous_tag} OUTPUT_MODE=commit_mr_and_merge PR_MERGE_AUTO=true bash scripts/run-docs-archive-on-tag.sh"
payload="$(jq -n --arg command "$command" --arg cwd "." '{command: $command, cwd: $cwd, async: false}')"
curl --fail --show-error --silent -X POST "$DOCS_AUTOGEN_URL" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${DOCS_AUTOGEN_TOKEN}" \
-d "$payload"