diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml new file mode 100644 index 00000000..c6c9e2bd --- /dev/null +++ b/.github/workflows/tag-release.yaml @@ -0,0 +1,34 @@ +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 + with: + ref: feature/documentation-exporting + + - 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) + git push origin feature/documentation-exporting \ No newline at end of file