diff --git a/.gitea/workflows/lint-and-reload.yml b/.gitea/workflows/lint-and-reload.yml new file mode 100644 index 0000000..1cab5df --- /dev/null +++ b/.gitea/workflows/lint-and-reload.yml @@ -0,0 +1,20 @@ +# Lint on the kasse host runner (the portal binary lives there), then +# nudge the running portal to refetch content over local NATS. +name: lint-and-reload +on: + push: + branches: [main] + +jobs: + lint: + runs-on: fish + steps: + - name: checkout + run: | + rm -rf checkout && git clone --depth 1 https://prosjekt.klingenbergbygg.no/westra/questions.git checkout + - name: lint + run: | + /srv/app/westra-portal/current/question_lint --path checkout/questions + - name: reload + run: | + nats --server nats://127.0.0.1:4222 pub portal.content.reload "" diff --git a/questions/kontakt.yaml b/questions/kontakt.yaml index fdcc363..3057141 100644 --- a/questions/kontakt.yaml +++ b/questions/kontakt.yaml @@ -48,3 +48,4 @@ alternatives: description: > Til forsiden. action: / + consequence: [Tilbake] diff --git a/questions/prosjekter.yaml b/questions/prosjekter.yaml index 0518f38..5e98af7 100644 --- a/questions/prosjekter.yaml +++ b/questions/prosjekter.yaml @@ -108,3 +108,4 @@ alternatives: description: > Til forsiden. action: / + consequence: [Tilbake] diff --git a/questions/takk.yaml b/questions/takk.yaml index 6cbba0a..84a8eca 100644 --- a/questions/takk.yaml +++ b/questions/takk.yaml @@ -7,7 +7,9 @@ alternatives: description: > Fra sykehjem til offshore-moduler. action: /prosjekter + consequence: [Se prosjektene] - name: Til forsiden description: > Der spørsmålet begynner. action: / + consequence: [Til forsiden] diff --git a/questions/tjenester.yaml b/questions/tjenester.yaml index 8c947ae..0d63cbc 100644 --- a/questions/tjenester.yaml +++ b/questions/tjenester.yaml @@ -86,3 +86,4 @@ alternatives: description: > Til forsiden. action: / + consequence: [Tilbake]