ci: do not push to nais-yaml unless on master

This commit is contained in:
Trong Huu Nguyen
2021-08-25 12:03:23 +02:00
parent 5da34f0139
commit 26a74cb0db

View File

@@ -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"