From 8f08109eddf33d7815b31c33452146d8fef9e0e1 Mon Sep 17 00:00:00 2001 From: Lee Calcote Date: Sun, 29 Sep 2024 22:17:25 -0500 Subject: [PATCH] Refactor workflow file to update repository name Signed-off-by: Lee Calcote --- .github/workflows/build-and-release-edge.yml | 8 ++++---- .github/workflows/build-and-release-stable.yml | 8 ++++---- .github/workflows/build-release.yml | 2 +- .github/workflows/build-ui-and-server.yml | 12 ++++++------ .../workflows/cncf-playground-deploy-meshery.yaml | 2 +- .github/workflows/cncf-playground-reset.yaml | 4 ++-- .github/workflows/error-codes-updater.yaml | 2 +- .github/workflows/go-mod-sync.yaml | 2 +- .github/workflows/go-testing-ci.yml | 6 +++--- .github/workflows/integrations-updater.yml | 2 +- .github/workflows/mesheryctl-ci.yml | 4 ++-- .github/workflows/multi-platform.yml | 4 ++-- .github/workflows/notify-providers.yaml | 2 +- .github/workflows/release-drafter.yml | 2 +- 14 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build-and-release-edge.yml b/.github/workflows/build-and-release-edge.yml index 0ffe63f11da..645ceb7ab06 100644 --- a/.github/workflows/build-and-release-edge.yml +++ b/.github/workflows/build-and-release-edge.yml @@ -1,4 +1,4 @@ -name: Meshery Build and Releaser (edge) +name: Meshery Extension Build and Releaser (edge) on: workflow_dispatch: inputs: @@ -17,7 +17,7 @@ on: jobs: update-rest-api-docs: name: Update REST API Documentation - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -57,7 +57,7 @@ jobs: update-graphql-docs: name: Update GraphQL API Documentation - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: Check out code @@ -99,7 +99,7 @@ jobs: docker-build-push: name: Docker build and push - if: github.repository == 'meshery/meshery' && github.event_name != 'pull_request' && success() + if: github.repository == 'meshery/helm-kanvas-snapshot' && github.event_name != 'pull_request' && success() env: RELEASE_CHANNEL: "edge" runs-on: ubuntu-22.04 diff --git a/.github/workflows/build-and-release-stable.yml b/.github/workflows/build-and-release-stable.yml index 2d8a88fbdfc..6f9889946b5 100644 --- a/.github/workflows/build-and-release-stable.yml +++ b/.github/workflows/build-and-release-stable.yml @@ -8,7 +8,7 @@ jobs: update-rest-api-docs: name: Update REST API Documentation - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -48,7 +48,7 @@ jobs: update-graphql-docs: name: Update GraphQL API Documentation - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: Check out code @@ -89,7 +89,7 @@ jobs: build: name: Docker build and push - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' env: RELEASE_CHANNEL: "stable" runs-on: ubuntu-22.04 @@ -128,7 +128,7 @@ jobs: # DOCKERHUB_REPOSITORY: ${{ secrets.IMAGE_NAME }} ctlrelease: name: Mesheryctl build & release - if: github.repository == 'meshery/meshery' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'patch') && !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') + if: github.repository == 'meshery/helm-kanvas-snapshot' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'patch') && !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') runs-on: macos-latest steps: - name: Check out code diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6ba2657c6ae..b65e08b37a3 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -7,7 +7,7 @@ on: jobs: notfiy-build: name: Notify providers for Meshery Extensions channel build - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: trigger plugins for edge diff --git a/.github/workflows/build-ui-and-server.yml b/.github/workflows/build-ui-and-server.yml index ca22d8bf1be..ed02ff76df5 100644 --- a/.github/workflows/build-ui-and-server.yml +++ b/.github/workflows/build-ui-and-server.yml @@ -21,7 +21,7 @@ permissions: read-all jobs: build-backend: name: Backend build - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: Check out code @@ -41,7 +41,7 @@ jobs: make build-server ui-build: name: UI build - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: Check out code @@ -104,7 +104,7 @@ jobs: needs: [build-backend, ui-build] name: UI end-to-end tests environment: staging-playground - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 timeout-minutes: 45 steps: @@ -208,7 +208,7 @@ jobs: retention-days: 14 docker-build-test: name: Docker build - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: Check out code @@ -237,7 +237,7 @@ jobs: repository: ${{ secrets.IMAGE_NAME }} # validate the swagger docs swaggerci: - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' name: swagger-docs runs-on: ubuntu-22.04 steps: @@ -264,7 +264,7 @@ jobs: # validate graphQL schema garphql_validate: name: Validate GraphQL schema - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-latest steps: - name: Check out code diff --git a/.github/workflows/cncf-playground-deploy-meshery.yaml b/.github/workflows/cncf-playground-deploy-meshery.yaml index 0191a48cd7a..b69a803d190 100644 --- a/.github/workflows/cncf-playground-deploy-meshery.yaml +++ b/.github/workflows/cncf-playground-deploy-meshery.yaml @@ -13,7 +13,7 @@ on: jobs: cncf-playground-rollout: name: Update Meshery on CNCF playground - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-latest steps: - name: Pull latest images and restart containers diff --git a/.github/workflows/cncf-playground-reset.yaml b/.github/workflows/cncf-playground-reset.yaml index 926605d3487..bac70f959dd 100644 --- a/.github/workflows/cncf-playground-reset.yaml +++ b/.github/workflows/cncf-playground-reset.yaml @@ -7,7 +7,7 @@ on: jobs: reset: name: reset - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-latest steps: - name: Cluster cleanup by running the cleanup script inside VM @@ -22,7 +22,7 @@ jobs: # reboot: # name: Reboot Metal servers # needs: reset -# if: github.repository == 'meshery/meshery' +# if: github.repository == 'meshery/helm-kanvas-snapshot' # runs-on: ubuntu-latest # steps: # - name: Download and install Equinix Metal CLI diff --git a/.github/workflows/error-codes-updater.yaml b/.github/workflows/error-codes-updater.yaml index 50b5ae04a30..ed546023d2d 100644 --- a/.github/workflows/error-codes-updater.yaml +++ b/.github/workflows/error-codes-updater.yaml @@ -14,7 +14,7 @@ on: jobs: Update-error-codes: name: Error codes utility - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@master diff --git a/.github/workflows/go-mod-sync.yaml b/.github/workflows/go-mod-sync.yaml index 5c6f9ae5dc1..4b7d71edf18 100644 --- a/.github/workflows/go-mod-sync.yaml +++ b/.github/workflows/go-mod-sync.yaml @@ -8,7 +8,7 @@ on: - "go.mod" jobs: sync: - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' name: sync runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/go-testing-ci.yml b/.github/workflows/go-testing-ci.yml index 9d76f16e800..bd6c99b2ad0 100644 --- a/.github/workflows/go-testing-ci.yml +++ b/.github/workflows/go-testing-ci.yml @@ -24,7 +24,7 @@ jobs: go: [1.21] os: [ubuntu-22.04] name: golangci-lint - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ${{ matrix.os }} steps: - uses: actions/setup-go@v5 @@ -53,7 +53,7 @@ jobs: - name: Run coverage run: go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage to Codecov - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' uses: codecov/codecov-action@v4.3.0 with: files: ./coverage.txt @@ -103,7 +103,7 @@ jobs: echo "Running Mesheryctl with Kubernetes completed." - name: Upload coverage to Codecov - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' uses: codecov/codecov-action@v4 with: files: ./coverage.txt diff --git a/.github/workflows/integrations-updater.yml b/.github/workflows/integrations-updater.yml index eff5467fa8a..63b4087914d 100644 --- a/.github/workflows/integrations-updater.yml +++ b/.github/workflows/integrations-updater.yml @@ -15,7 +15,7 @@ on: jobs: integrations: - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 # outputs: # output1: ${{ steps.step1.outputs.test }} diff --git a/.github/workflows/mesheryctl-ci.yml b/.github/workflows/mesheryctl-ci.yml index e5d8a5accee..da6e6d12643 100644 --- a/.github/workflows/mesheryctl-ci.yml +++ b/.github/workflows/mesheryctl-ci.yml @@ -20,7 +20,7 @@ on: jobs: golangci: name: golangci-lint - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -36,7 +36,7 @@ jobs: skip-cache: true mesheryctl_build: name: Mesheryctl build & release - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: macos-latest needs: [golangci] steps: diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml index 2b638c108e3..a54d1e9e13f 100644 --- a/.github/workflows/multi-platform.yml +++ b/.github/workflows/multi-platform.yml @@ -36,7 +36,7 @@ env: jobs: print-inputs: - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: @@ -51,7 +51,7 @@ jobs: echo "Env GITHUB_REF:" ${GITHUB_REF} docker-build: - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - diff --git a/.github/workflows/notify-providers.yaml b/.github/workflows/notify-providers.yaml index 542ae661206..8a55c686f1a 100644 --- a/.github/workflows/notify-providers.yaml +++ b/.github/workflows/notify-providers.yaml @@ -12,7 +12,7 @@ on: jobs: notify-remote-provider-build: name: Notify Remote Providers of Release - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: trigger plugins for edge diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 99661bba267..0f3d3e59dd5 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -8,7 +8,7 @@ on: - '.github/**' jobs: update_release_draft: - if: github.repository == 'meshery/meshery' + if: github.repository == 'meshery/helm-kanvas-snapshot' runs-on: ubuntu-22.04 steps: - name: Drafting release