Merge branch 'meshery:master' into master #887
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Meshery Docs CLI Reference Update | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| paths: | |
| - "mesheryctl/**" | |
| workflow_dispatch: | |
| inputs: | |
| logLevel: | |
| description: "Log level" | |
| required: true | |
| default: "warning" | |
| jobs: | |
| mesheryctl_docs: | |
| if: "always() && github.event_name != 'pull_request' && github.repository == 'meshery/meshery' " | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Skip if needed | |
| run: | | |
| echo "this is it ${{ needs.SkipIfNeeded.outputs.skipdocupdate }} " | |
| if [ "${{github.event_name }}" == "push" ];then | |
| echo "version=edge" >> $GITHUB_ENV | |
| fi | |
| if [ "${{github.event_name }}" == "release" ];then | |
| echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
| fi | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: meshery/meshery | |
| token: ${{ secrets.GH_ACCESS_TOKEN }} | |
| - name: Setup go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| check-latest: "true" | |
| - name: Remove current docs pages for mesheryctl | |
| run: rm -rf docs/pages/reference/mesheryctl/* | |
| - name: Run script 📜 | |
| run: | | |
| cd mesheryctl | |
| make docs | |
| - name: Pull changes from remote | |
| run: git pull origin master | |
| - name: Commit ✅ | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| file_pattern: docs | |
| commit_user_name: l5io | |
| commit_user_email: [email protected] | |
| commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
| commit_options: "--signoff" | |
| commit_message: "[Docs] Update Meshery Docs CLI Reference" |