Skip to content

Commit 51047e5

Browse files
committed
feat: restore workflow helper scripts for documentation updates
This commit adds steps to the GitHub Actions workflow to restore and install helper scripts from the workflow commit. These scripts are essential for managing the documentation process, ensuring that the necessary tools are available for generating and updating release notes and version mappings.
1 parent 0478697 commit 51047e5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/update-studio-docs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,24 @@ jobs:
164164
git checkout -B "$BRANCH"
165165
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
166166
167+
# -------------------------------------------------
168+
# Restore helper scripts from the workflow commit.
169+
# The docs target branch (e.g. rel-10.4) may not contain them yet.
170+
# -------------------------------------------------
171+
- name: Checkout workflow scripts
172+
uses: actions/checkout@v4
173+
with:
174+
repository: ${{ github.repository }}
175+
ref: ${{ github.sha }}
176+
sparse-checkout: .github/scripts
177+
path: _workflow_scripts
178+
179+
- name: Install workflow scripts
180+
run: |
181+
mkdir -p .github/scripts
182+
cp _workflow_scripts/.github/scripts/*.py .github/scripts/
183+
ls -la .github/scripts/
184+
167185
# -------------------------------------------------
168186
# Analyze existing release notes format
169187
# -------------------------------------------------

0 commit comments

Comments
 (0)