Skip to content

Commit f323e24

Browse files
authored
Switch to main branch (#439)
* switch to main branch as the default * don't build and deploy if only nix files are changed * fixup nix-check workflow
1 parent 58d978d commit f323e24

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/alert-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ run-name: Deploy alerts for Dapla Ctrl to test and prod
44
on:
55
push:
66
branches:
7-
- develop
7+
- main
88
paths:
99
- '.nais/alerts.yaml'
1010
- '.github/workflows/alert-deploy.yaml'

.github/workflows/build-deploy-app.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ on:
33
types: [published]
44
push:
55
branches:
6-
- develop
6+
- main
77
paths-ignore:
88
- '**/*.md'
99
- '.gitignore'
10+
# No need to build and deploy if only the nix development environment changes
11+
- 'flake.nix'
12+
- 'flake.lock'
1013

1114
env:
1215
REGISTRY: europe-north1-docker.pkg.dev/${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}/dapla-stat/dapla-ctrl

.github/workflows/nix-check.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Nix tests
22

33
on:
44
pull_request:
5-
paths: '**/*.nix'
5+
paths:
6+
- '**/*.nix'
7+
8+
permissions:
9+
contents: read
610

711
jobs:
812
nix-tests:

0 commit comments

Comments
 (0)