mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-10 18:37:00 +00:00
ci: do not push to nais-yaml unless on master
This commit is contained in:
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user