Skip to content

Commit 6381d3b

Browse files
committed
Kjører nå build og publish direkte på push i main
1 parent dbda29c commit 6381d3b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/buildAndPublish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,22 @@ on:
44
secrets:
55
SF_DEVHUB_URL:
66
required: true
7+
push:
8+
branches:
9+
- main
710
workflow_dispatch:
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.ref_name }}
1013
jobs:
14+
staticCodeValidation:
15+
name: Validation jobs
16+
uses: navikt/sf-platform/.github/workflows/ciStaticCodeValidation.yml@main
17+
permissions:
18+
contents: read
19+
1120
checkChanges:
1221
name: Check changes
22+
needs: staticCodeValidation
1323
runs-on: ubuntu-latest
1424
outputs:
1525
hasSrcChanges: ${{ steps.checkChanges.outputs.hasSrcChanges }}

0 commit comments

Comments
 (0)