Skip to content

Commit

Permalink
Use custom slack channel if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Aug 14, 2024
1 parent 41fed06 commit 96f861b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/universal_workflow_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
description: 'Content of ~/oxid-esales/_custom.yaml'
default: ''
required: false
custom_slack_channel:
type: string
description: 'Custom slack channel to override the default'
default: ''
required: false

secrets:
DOCKER_HUB_USER:
Expand Down Expand Up @@ -1300,7 +1305,7 @@ jobs:
- actionlint
runs-on: ${{ fromJSON(inputs.runs_on) }}
env:
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_WEBHOOK: "${{ inputs.custom_slack_channel }} ||${{ secrets.SLACK_WEBHOOK_URL }}"
steps:
- name: 'Generate report'
id: generate_report
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/universal_workflow_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
description: 'Content of ~/oxid-esales/_custom.yaml'
default: ''
required: false
custom_slack_channel:
type: string
description: 'Custom slack channel to override the default'
default: ''
required: false

secrets:
DOCKER_HUB_USER:
Expand Down Expand Up @@ -1300,7 +1305,7 @@ jobs:
- actionlint
runs-on: ${{ fromJSON(inputs.runs_on) }}
env:
SLACK_WEBHOOK: "${{ secrets.SLACK_WEBHOOK_URL }}"
SLACK_WEBHOOK: "${{ inputs.custom_slack_channel }} ||${{ secrets.SLACK_WEBHOOK_URL }}"
steps:
- name: 'Generate report'
id: generate_report
Expand Down

0 comments on commit 96f861b

Please sign in to comment.