Skip to content

Commit

Permalink
feature/markdown-scan-slack (#3376)
Browse files Browse the repository at this point in the history
Rapporterer til Slack ved ikke-eksisterende URL i dokumentasjon.
  • Loading branch information
rfc3092 authored Jan 11, 2024
1 parent 79bc92d commit 9dcb793
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/scheduled.scan.markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
description: "Directory to scan, e.g. apps/dolly-backend. Defaults to whole repo."
default: "."
required: true
secrets:
SLACK_DEAD_URLS_WEBHOOK_URL:
required: true

jobs:
markdown:
Expand All @@ -20,4 +23,14 @@ jobs:
with:
folder-path: ${{ inputs.working-directory }}
config-file: .github/workflows/scheduled.scan.markdown.json
use-quiet-mode: yes
use-quiet-mode: yes
- name: "Slack"
if: ${{ failure() }}
uses: slackapi/[email protected]
with:
payload: |
{
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEAD_URLS_WEBHOOK_URL }}
2 changes: 1 addition & 1 deletion apps/budpro-service/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Dette er en tjeneste laget for [Team BudPro](https://teamkatalog.nav.no/team/abc1b143-87e3-45d1-8518-0efd23a775fa), for å generere NAV-ansatte og deres informasjon.
Dette er en tjeneste laget for Team BudPro, for å generere NAV-ansatte og deres informasjon.

Startes lokalt på samme måte som alle andre. Spring profile `local`, definer `spring.cloud.vault.token` fra Vault.
Swagger på http://localhost:8080/swagger. Se endepunkter under `budpro-controller`. Andre endepunkter er for å liste ut definerte grunnverdier.
Expand Down

0 comments on commit 9dcb793

Please sign in to comment.