From 26a74cb0db559b18f8a70831acf8675fd90730bd Mon Sep 17 00:00:00 2001 From: Trong Huu Nguyen Date: Wed, 25 Aug 2021 12:03:23 +0200 Subject: [PATCH] ci: do not push to nais-yaml unless on master --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4bb24cf..933f211 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,12 +28,14 @@ jobs: if: github.ref == 'refs/heads/master' run: docker push ${{ env.image_base }}:latest - name: Checkout nais-yaml + if: github.ref == 'refs/heads/master' uses: actions/checkout@v2 with: repository: navikt/nais-yaml token: ${{ secrets.NAIS_YAML_TOKEN }} path: nais-yaml - name: Update nais-yaml + if: github.ref == 'refs/heads/master' run: | cd nais-yaml git config user.name "NAIS deploy pipeline"