From bbc2e8f818fb8603ae518c88b1261a4d85cf9d08 Mon Sep 17 00:00:00 2001 From: solovevayaroslavna Date: Thu, 11 Dec 2025 09:39:26 +0400 Subject: [PATCH 1/2] feature/documentation-exporting: add workflow for importing documentation from everest-doc by version --- .github/workflows/tag-release.yaml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tag-release.yaml diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml new file mode 100644 index 00000000..7ac1cba4 --- /dev/null +++ b/.github/workflows/tag-release.yaml @@ -0,0 +1,31 @@ +name: Import Documentation + +on: + workflow_dispatch: + inputs: + version: + description: 'Version number to import (e.g., 1.15)' + required: true + type: string + +jobs: + import-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + + - name: Run import script + run: | + bash hack/import_docs.sh ${{ inputs.version }} + + - name: Commit and push changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add assets/documentation/${{ inputs.version }} + git diff-index --quiet HEAD || git commit -m "docs: import documentation for version ${{ inputs.version }}" + git push origin $(git rev-parse --abbrev-ref HEAD) \ No newline at end of file From 21ccffc027d0adee059de54d7a690fab3878c63b Mon Sep 17 00:00:00 2001 From: solovevayaroslavna Date: Thu, 11 Dec 2025 09:48:53 +0400 Subject: [PATCH 2/2] feature/documentation-exporting: fix: ensure correct test branch reference for checkout and push in tag-release workflow --- .github/workflows/tag-release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml index 7ac1cba4..c6c9e2bd 100644 --- a/.github/workflows/tag-release.yaml +++ b/.github/workflows/tag-release.yaml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + ref: feature/documentation-exporting - name: Set up Docker uses: docker/setup-buildx-action@v2 @@ -28,4 +30,5 @@ jobs: git config --local user.name "GitHub Action" git add assets/documentation/${{ inputs.version }} git diff-index --quiet HEAD || git commit -m "docs: import documentation for version ${{ inputs.version }}" - git push origin $(git rev-parse --abbrev-ref HEAD) \ No newline at end of file + # git push origin $(git rev-parse --abbrev-ref HEAD) + git push origin feature/documentation-exporting \ No newline at end of file