From 6cb480ec5c49ed0b2da5f4e3b9b2c59941db9b4b Mon Sep 17 00:00:00 2001 From: Network Service Mesh Bot <60070799+nsmbot@users.noreply.github.com> Date: Thu, 7 Apr 2022 10:51:29 -0500 Subject: [PATCH] Sync files with networkservicemesh/cmd-template --- .github/workflows/docker-push-ghcr.yml | 1 + .github/workflows/docker-push.yaml | 2 +- .github/workflows/update-deployments.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-push-ghcr.yml b/.github/workflows/docker-push-ghcr.yml index 9be5c43..a3ac114 100644 --- a/.github/workflows/docker-push-ghcr.yml +++ b/.github/workflows/docker-push-ghcr.yml @@ -12,6 +12,7 @@ on: jobs: docker: runs-on: ubuntu-latest + if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push') }} steps: - name: "Checkout" uses: actions/checkout@v2 diff --git a/.github/workflows/docker-push.yaml b/.github/workflows/docker-push.yaml index c6d9738..40693f7 100644 --- a/.github/workflows/docker-push.yaml +++ b/.github/workflows/docker-push.yaml @@ -19,7 +19,7 @@ jobs: ORG: networkservicemeshci CGO_ENABLED: 0 NAME: ${{ github.event.repository.name }} - if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.ref == 'refs/heads/main') }} + if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push') }} steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v1 diff --git a/.github/workflows/update-deployments.yaml b/.github/workflows/update-deployments.yaml index 05fe3d4..8fad8ba 100644 --- a/.github/workflows/update-deployments.yaml +++ b/.github/workflows/update-deployments.yaml @@ -13,7 +13,7 @@ jobs: update-deployments-k8s: name: Update deployments-k8s runs-on: ubuntu-latest - if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.ref == 'refs/heads/main') }} + if: ${{ github.repository != 'networkservicemesh/cmd-template' && (github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push') }} steps: - name: Checkout ${{ github.repository }} uses: actions/checkout@v2