Skip to content

Commit

Permalink
fix template footer
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiRupertti committed May 20, 2024
1 parent 5741062 commit 793c3ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-call-notify-bugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
channelId: CEZ6B64UE # bugs
title: 'Plantão'
userMessage: 'estará atuando como apoio técnico essa semana'
footer: ''
footer: false
3 changes: 1 addition & 2 deletions .github/workflows/on-call-notify-tech.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
schedule:
- cron: "0 09 * * 1"


jobs:
notify:
uses: ./.github/workflows/on-call-template.yml
Expand All @@ -13,4 +12,4 @@ jobs:
channelId: CEW7CLZP1 # team-engineers
title: 'On Call'
userMessage: 'está on-call essa semana'
footer: '<https://kovihq.app.opsgenie.com/settings/schedule/detail/${{matrix.scheduleId}}|Para mais detalhes>'
footer: true
6 changes: 3 additions & 3 deletions .github/workflows/on-call-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
type: string
required: true
footer:
description: Message Footer
type: string
description: Footer toggle
type: boolean
required: true

jobs:
Expand Down Expand Up @@ -72,4 +72,4 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEPLOY }}
MSG_MINIMAL: true
SLACK_MSG_AUTHOR: kovihq
SLACK_FOOTER: ${{inputs.footer}}
SLACK_FOOTER: ${{ inputs.footer && format('<https://kovihq.app.opsgenie.com/settings/schedule/detail/{0}|Para mais detalhes>', matrix.scheduleId) || '' }}

0 comments on commit 793c3ec

Please sign in to comment.