diff --git a/.github/workflows/mesheryctl-ci.yml b/.github/workflows/mesheryctl-ci.yml index da6e6d1264..b4cc948f94 100644 --- a/.github/workflows/mesheryctl-ci.yml +++ b/.github/workflows/mesheryctl-ci.yml @@ -4,12 +4,14 @@ on: branches: - "master" paths: - - "mesheryctl/**" + - "cmd/**" + - "internal/**" pull_request: branches: - "master" paths: - - "mesheryctl/**" + - "cmd/**" + - "internal/**" workflow_dispatch: inputs: logLevel: @@ -34,8 +36,8 @@ jobs: working-directory: mesheryctl args: --timeout 10m --verbose skip-cache: true - mesheryctl_build: - name: Mesheryctl build & release + build: + name: Build if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: macos-latest needs: [golangci] @@ -63,42 +65,3 @@ jobs: with: version: latest args: release --snapshot --skip-publish --clean - mesheryctl_docs: - if: "always() && github.event_name != 'pull_request' && github.repository == 'meshery/meshery' " - runs-on: ubuntu-22.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@v4 - with: - repository: meshery/meshery - token: ${{ secrets.GH_ACCESS_TOKEN }} - - name: Setup go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: "true" - - 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@v5 - with: - file_pattern: docs - commit_user_name: l5io - commit_user_email: ci@layer5.io - commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - commit_options: "--signoff" - commit_message: "[Docs] Update mesheryctl docs" \ No newline at end of file